python - Issue when deploying with PythonAnywhere -
i following tutorial https://help.pythonanywhere.com/pages/deployexistingdjangoproject/ , got when launching website
error when launching website 2017-04-06 18:23:34,028 :error running wsgi application 2017-04-06 18:23:34,030 :nameerror: name 'imed_pythonanywhere_com_wsgi' not defined 2017-04-06 18:23:34,030 : file "/var/www/imed_pythonanywhere_com_wsgi.py", line 1, in <module> 2017-04-06 18:23:34,030 : imed_pythonanywhere_com_wsgi.py
can hep problem pls, can't figure out here directories
import os import sys path = '/home/imed/website' # use own pythonanywhere username here if path not in sys.path: sys.path.append(path) os.environ['django_settings_module'] = 'mysite.settings' django.core.wsgi import get_wsgi_application django.contrib.staticfiles.handlers import staticfileshandler application = staticfileshandler(get_wsgi_application())
Comments
Post a Comment