Forums

Problems trying to post a website with pythonanywhere - Error code: Unhandled Exception

I have this as /var/www/iexchangepro_pythonanywhere_com_wsgi.py:

import os
import sys

path = '/home/iexchangepro/my-first-blog'
if path not in sys.path:
    sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'iexchangepro.settings'

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(get_wsgi_application())

and I don't see what's wrong... I followed the tutorial https://tutorial.djangogirls.org/es/deploy/

Look in your error and server logs for tracebacks that you can use to start debugging.