Reputation:
In all the tutorials I found they suggested to create the Procfile
to deploy to heroku with the following line:
web: gunicorn ProjectName.wsgi --log-file -
Since I'm using Django 1.8 and in setting.py I have this:
WSGI_APPLICATION = 'ProjectName.wsgi.application'
I thought this would work:
web: gunicorn ProjectName.wsgi.application --log-file -
but it didn't, an error was ImportError: No module named application
Upvotes: 7
Views: 7323
Reputation: 5819
Very close! What you need is:
web: gunicorn ProjectName.wsgi:application --log-file -
Note the colon, instead of a dot.
Upvotes: 15