-
Notifications
You must be signed in to change notification settings - Fork 8
Django 1.11 Heroku
Dan Loewenherz edited this page Oct 5, 2017
·
6 revisions
Includes a requirements.txt with libraries that promote Django best practices, such as:
- Django storages, for support with many file storage backends.
- Statictastic, for an easy way to sync static media to your storage backends.
$ heroku create
$ heroku config:set APP_ENVIRONMENT=production
$ heroku config:set AWS_ACCESS_KEY_ID=XXX
$ heroku config:set AWS_SECRET_ACCESS_KEY=XXX
$ heroku config:set AWS_STORAGE_BUCKET_NAME=XXX
$ git push heroku master
To start a new Django project called project_name
, run the following.
django-admin.py startproject -e md,ngx,ini,Procfile --template=https://github.com/lionheart/django-template/archive/django-1.11-heroku.zip project_name