Forums

Error running WSGI application.

I have no idea what's going on. Please help me.

I can't deplo my django project because of this:

'Error running WSGI application' AttributeError: module 'mb77_pythonanywhere_com_wsgi' has no attribute 'application'

wsgi file:

import os
import sys


path = '/home/MB77/books/books'
if path not in sys.path:
    sys.path.append(path)

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'books.settings')

# then:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

You should read the error log from the bottom, since the most recent errors are being appended there. Also -- have you checked this help page yet?