try to package...
This commit is contained in:
parent
8ac72bda5b
commit
d15b2703ce
@ -1,5 +1,5 @@
|
||||
from src.persistance import init_db
|
||||
from src.webapp import app
|
||||
from oshipka.persistance import init_db
|
||||
from oshipka.webapp import app
|
||||
|
||||
if __name__ == "__main__":
|
||||
init_db(app)
|
||||
|
0
src/oshipka/persistance/__init__.py
Normal file
0
src/oshipka/persistance/__init__.py
Normal file
@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
|
||||
from src.persistance.models import db
|
||||
from oshipka.persistance.models import db
|
||||
|
||||
|
||||
def populate_db(app):
|
Loading…
Reference in New Issue
Block a user