[Django]-Django no module named setting

4👍

I can’t comment because I don’t have enough rep. This issue is clearly that the settings.py file is not being found based on where your wsgi.py file says it’s going to be.

Therefore we need to see your project directory structure. It should look like this.

YourProject
   > FrobShop
     settings.py
   wsgi.py

The good news is the wsgi file is being found by your virtualenv, it’s the wsgi that can’t find the settings.

3👍

Make sure you have included the file
__init__.py
in every directory containing and leading up to your settings file.

If you do not include an __init__.py file in your directory, python version < 3 does not recognize the directory as a module.

Leave a comment