Revert "Fix module errors"

This reverts commit 5ef94e857c.
This commit is contained in:
adam-skowronek 2023-01-09 21:25:43 +01:00
parent e97e92e8b7
commit 3009ca01b3
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def import_models() -> None:
models_module = "models"
for dirname in directories:
try:
importlib.import_module(f"backend.app.{dirname}.{models_module}")
importlib.import_module(f"app.app.{dirname}.{models_module}")
except ModuleNotFoundError:
print(models_module, dirname)
warnings.warn(f"Not found module {models_module}.py in package {dirname}")

View File

@ -1,5 +1,5 @@
from dotenv import load_dotenv
from backend.app import create_app
from .app import create_app
load_dotenv()
app = create_app()