I keep getting "DJANGO ModuleNotFound: <APP_NAME>" when trying to deploy with gunicorn wsgi. How do I make it go away?

Asked 2 years ago

I've worked with Python in the past, and I'm now doing my best to learn Django, as I'd like to go a bit into the web dev space. However, I keep getting the same error - "Error: No module named ..". Any ideas?

Cliff Dawson

Monday, October 03, 2022

The #1 reason why something like this could be happening is because you haven't included the __init__.py file in your folder. If this isn't the problem, then you probably need to manually change the read/write permissions in the folder. As a last resort, check if the project is in your PYTHONPATH. If it isn't, make sure to include it.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?