From 5461f1aedb991f9bf28472eb0a7df76aee6b0f56 Mon Sep 17 00:00:00 2001 From: Timothy Olaleke Date: Sat, 16 Feb 2019 08:30:30 +0100 Subject: [PATCH] Update deployment-on-heroku.rst --- docs/deployment-on-heroku.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/deployment-on-heroku.rst b/docs/deployment-on-heroku.rst index f753aa5a4..088e14a74 100644 --- a/docs/deployment-on-heroku.rst +++ b/docs/deployment-on-heroku.rst @@ -8,6 +8,18 @@ Run these commands to deploy the project to Heroku: .. code-block:: bash heroku create --buildpack https://github.com/heroku/heroku-buildpack-python + + # Setup heroku requirements + pip install django-heroku + pip freeze > requirements.txt + + # In your base/setting.py file, append the following: + import django_heroku + + # All the way at the bottom of the file + # ... + + django_heroku.settings(locals()) heroku addons:create heroku-postgresql:hobby-dev # On Windows use double quotes for the time zone, e.g.