[Django]-Target WSGI Script Cannot Be Loaded as Python Module in Django App

5đź‘Ť

âś…

You’ve set your DJANGO_SETTINGS_MODULE to “mysite.apache.override”, but you don’t have anything called “mysite”; your project is “project”, so your settings module is in “project.apache.override”.

Note also that you really shouldn’t be putting your code under public_html, and preferably not under /var/www at all; it shouldn’t be anywhere where it could mistakenly be served directly by the webserver.

Leave a comment