[Fixed]-Django in apache with mod_wsgi confused by os.environ mysite.settings and settings.py

1👍

When you define:

DJANGO_SETTINGS_MODULE = 'mysite.settings'

Django looks up for settings.py file in mysite folder. mysite folder has to be on your PYTHONPATH. Make sure you set your PYTHONPATH to something like:

export PYTHONPATH=/home/work/project:/home/work/project/project:$PYTHONPATH

Leave a comment