Update deployment-on-heroku.rst

This commit is contained in:
Timothy Olaleke 2019-02-16 08:29:39 +01:00 committed by GitHub
parent 4c7cb50ace
commit 1227444124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,20 @@ 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:
```python
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.