I have a python application (which we'll call app) I'd like to have a web front for. The application has many files and it's important the folder tree structure stays the way it is.
I've built a Django project and put it in a folder named "Web" in the app's folder, so now the folder tree looks like so:
ImportError: No module named WebFront
You can locate your
main.py script where you like. However, if it is outside of the
Web folder, then you will have to add
Web to the Python path, otherwise imports like
import Webfront are going to fail.
import sys sys.path.append('/path/to/Web/')
Once you have done that, you can change the