Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.09 KB

File metadata and controls

30 lines (24 loc) · 1.09 KB

Django Heroku Mezzanine Bare Bones

Django and Heroku generally play nicely but sometimes Mezzanine has some quirks that cause issues, this template aims to rectify that.

Requirements

  • A Heroku account
  • An AWS S3 bucket for hosting media content

Features

  • Django 1.11.28
  • Mezzanine 4.2.3 & Cartridge 0.13.0

Setup

  1. Create local postgres database (default user / pass = postgres)
  2. Create your Amazon S3 Bucket with the name of your project
  3. mkvirtualenv $project_name
  4. pip install django==1.11.28
  5. django-admin.py startproject --template=https://github.com/petedermott/django-heroku-mezzanine-bare-bones/zipball/master --name=Procfile --extension=py,md,env $project_name
  6. cd $project_name
  7. Update $project_name/settings.py with your AWS / Heroku details (most of which are at the top of the file)
  8. Add your SECRET_KEY
  9. Set a DEBUG environment variable to True
  10. pip install -r requirements.txt
  11. ./manage.py migrate
  12. runserver
  13. ./manage.py createsuperuser

Contributing

Comments, feedback and pull requests are all welcome