• 0 Posts
  • 18 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle






  • It’s a bit hard to figure out the issue with just the stack trace but I’ll give it a shot.

    You are using relative imports and it looks like all your files are in the root folder. I suggest using only absolute imports as a rule and importing only the parts of the code that you need instead of entire files.

    So, instead of doing:

    from . import crud, etc, etc

    You can do:

    from crud import [whatever you need] from models import [whatever you need] Etc

    What is important is that you understand what the pythonpath is and how to structure your code around it.