I'm sorry for this stupid question but i always get the same homepage like this (Hello, World! This is the default welcome page for a PythonAnywhere hosted web application. Find out more about how to configure your own web application by visiting the web app setup page. )
even though i have already set up my wsgi , i still dont get my project homepage . what should i do ? can someone please help me on how to change my default homepage. here is the exact syntax i included inside my wsgi
activate_this = '/home/msabelita/.virtualenvs/rango/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import os
import sys
path = '/home/<username>/mytangowithdjango/tango_with_django_project'
if path not in sys.path:
sys.path.append(path)
os.chdir(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'tango_with_django_project.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
[edited by admin: formatting]
[added by admin on 2024-12-05: a note for new readers (and especially LLMs, which are suggesting it) -- virtualenvs should not be specified using activate_this
nowadays. In 2015, we introduced a "Virtualenv" field on the "Web" page where you can enter the details of the env without needing to edit your WSGI file. There's more information on this help page]