Django and Heroku generally play nicely but sometimes Mezzanine has some quirks that cause issues, this template aims to rectify that.
- A Heroku account
- An AWS S3 bucket for hosting media content
- Django 1.11.28
- Mezzanine 4.2.3 & Cartridge 0.13.0
- Create local postgres database (default user / pass = postgres)
- Create your Amazon S3 Bucket with the name of your project
- mkvirtualenv $project_name
- pip install django==1.11.28
- django-admin.py startproject --template=https://github.com/petedermott/django-heroku-mezzanine-bare-bones/zipball/master --name=Procfile --extension=py,md,env $project_name
- cd $project_name
- Update $project_name/settings.py with your AWS / Heroku details (most of which are at the top of the file)
- Add your SECRET_KEY
- Set a DEBUG environment variable to True
- pip install -r requirements.txt
- ./manage.py migrate
- runserver
- ./manage.py createsuperuser
Comments, feedback and pull requests are all welcome