Fix module errors
This commit is contained in:
parent
d286e93755
commit
5ef94e857c
@ -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"app.app.{dirname}.{models_module}")
|
importlib.import_module(f"backend.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 .app import create_app
|
from backend.app import create_app
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
Loading…
Reference in New Issue
Block a user