Forums

web app runs but manage.py in bash returns module not found error

My web app is deployed and running correctly using django so I know the file structure and wsig is ok.

I wanted to update a model in my code but when I get on the virtual environment and run manage.py i get module not found. The module that isnt found is myapp.myapp. I dont even understand why it is looking for this module?

I managed to solve this.

For some reason, the app only works with my urls_rootconif set to mysite.mysite.urls

however, for manage.py to run, I need to alter this setting back to just mysite.urls

What do you have in your WSGI file? It sounds like you might have the wrong path in there.