Procfile for Heroku for Django 1.8

In all the tutorials I found, they suggested creating Procfilefor deployment in heroku with the following line:

web: gunicorn ProjectName.wsgi --log-file - 

Since I use Django 1.8 and in the .py setup, I have this:

WSGI_APPLICATION = 'ProjectName.wsgi.application'

I thought this would work:

web: gunicorn ProjectName.wsgi.application --log-file - 

but it is not, the error was ImportError: No module named application

+4
source share
1 answer

Very close! What you need:

web: gunicorn ProjectName.wsgi:application --log-file -

Pay attention to the colon, not the period.

+12
source

All Articles