[Answered ]-Getting started with django and heroku, "application error" after upload

1👍

Change your wsgi.py file to this:

import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hellodjango.settings")
from dj_static import Cling
application = Cling(get_wsgi_application())

You need to specify your settings before importing Cling otherwise it will error out.

1👍

Add this to your .wsgi file

from django.core.wsgi import get_wsgi_application
from dj_static import Cling

application = Cling(get_wsgi_application())

Leave a comment