I'm a little frustrated, I wrote a Django app in about two hours, but i've been struggling with PythonAnywhere for three !
I'd be really glad if you could help out.
Currently, I'm getting an Error code: Unhandled Exception when going to my domain. I suspect my WSGI file is not properly configured. I'm (trying to) use Django 1.7 and Python 3.4.
Server error log ends with :
django.core.exceptions.ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class
Here is my WSGI :
activate_this = '/home/antoningrele/.virtualenvs/django17/bin/activate_this.py'
with open(activate_this) as f:
code = compile(f.read(), activate_this, 'exec')
exec(code, dict(__file__=activate_this))
# +++++++++++ DJANGO +++++++++++
import os
import sys
path = '/home/antoningrele/.virtualenvs/django17/electorcollector/'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'electorcollector.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
# import django
# django.setup()
Please feel free to look inside the rest of my installation if need be, there's nothing confidential in there.