parent
e97e92e8b7
commit
3009ca01b3
@ -23,7 +23,7 @@ def import_models() -> None:
|
|||||||
models_module = "models"
|
models_module = "models"
|
||||||
for dirname in directories:
|
for dirname in directories:
|
||||||
try:
|
try:
|
||||||
importlib.import_module(f"backend.app.{dirname}.{models_module}")
|
importlib.import_module(f"app.app.{dirname}.{models_module}")
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
print(models_module, dirname)
|
print(models_module, dirname)
|
||||||
warnings.warn(f"Not found module {models_module}.py in package {dirname}")
|
warnings.warn(f"Not found module {models_module}.py in package {dirname}")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from backend.app import create_app
|
from .app import create_app
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
Loading…
Reference in New Issue
Block a user