[Django]-Mezzanine on Heroku

3👍

Is your Procfile in the same path as settings.py/manage.py or outside? I had a similar issue and move my Profile up one level in your project directory. This is how foreman executes on a normal Django project. However, I’m running it with wsgi.

Here’s my Procfile

Procfile:
web: python manage.py collectstatic –noinput; gunicorn your_project.wsgi -b 0.0.0.0:$PORT

1👍

It looks like you don’t have all of the required apps installed hence the lack of collectstatic and run_gunicorn. Ensure that your requirements.txt has all necessary packages as required by Heroku.

My requirements.txt on a current Mezzanine project contains:

Cartridge==0.9.2
Django==1.6.2
Mezzanine==3.0.9
Pillow==2.3.1
bleach==1.4
boto==2.27.0
dj-database-url==0.3.0
dj-static==0.0.5
django-s3-storages-utils==0.1.0
django-storages==1.1.8
django-toolbelt==0.0.1
filebrowser-safe==0.3.2
future==0.9.0
grappelli-safe==0.3.7
gunicorn==18.0
html5lib==0.999
oauthlib==0.6.1
pisa==3.0.33
psycopg2==2.5.2
pystache==0.5.3
pytz==2014.2
requests==2.2.1
requests-oauthlib==0.4.0
six==1.6.1
static==1.0.2
tzlocal==1.0
wsgiref==0.1.2

My Mezzanine on Heroku complete how-to is here https://web.archive.org/web/20161018191100/http://www.benhavilland.com/blog/deploying-mezzanine-on-heroku/

Leave a comment