Hi,
I am trying to deploy dj4e.pythonanywhere.com/polls and there are errors - "2022-01-03 21:22:15,706: Error running WSGI application 2022-01-03 21:22:15,716: ModuleNotFoundError: No module named 'mysite'"
I checked the forums and fixed WSGI file on web tab, it looks like this now -
import os
import sys
path = '/home/dj4ekarthik/dj4e_projects/mysite'
if path not in sys.path:
sys.path.insert(0, path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
In the settings.py I have added dj4ekarthik.pythonanywhere.com in Allowed Hosts and added polls.apps.PillsConfig under Installed Apps. No other changes made.
Yet the deployment has not worked so far.
Any help appreciated. Thanks!