Hello,
So I have this problem: I modified the wsgi file in order to look for the module I need, but it continues to search for the default 'mysite.settings', obviously not finding it, giving me an error. This is my wsgi file:
import os
import sys
path = '/home/mikekuber/GameTheory/GameTheory'
if path not in sys.path:
sys.path.insert(0,path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'GameTheory.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
When I reload the site, the error log is showing me this:
Error running WSGI application
ModuleNotFoundError: No module named 'mysite.settings'
File "/var/www/mikekuber_pythonanywhere_com_wsgi.py", line 16, in <module>
application = get_wsgi_application()
I don't think it is too relevant, but my files look like this:
home
mikekuber
GameTheory
GameTheory
manage.py
GameTheory
settings.py
Could anyone please point to me what the problem here is?