This is my current web app structure:
user
webapp_root
├──app_one
│ └──main.py
└── webapp_dir
│ └── settings.py
│ └── urls.py
│ └── wsgi.py
│ └── asgi.py
└── platforms
└── platform_one
└──main.py
The file app_one/main.py imports the platforms/platform_one/main.py file, but I keep getting a module import error.
app_one/main.py file import:
from platforms.platform_one import main
Anytime I try and run a method from the app_one/main.py file through the Python3 shell on the command, by importing the app_one/main.py file an import module error always occurs when the file imports the platform_one/main.py file as it says it doesn't exist, even though it does.
I've tried messing around with sys.path, but I want the module to always be able to be imported not just when I add it to sys.path temporarily.
Thank you