mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 14:34:53 +03:00
Update deployment-on-heroku.rst
This commit is contained in:
parent
4c7cb50ace
commit
1227444124
|
@ -8,6 +8,20 @@ Run these commands to deploy the project to Heroku:
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
heroku create --buildpack https://github.com/heroku/heroku-buildpack-python
|
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
|
heroku addons:create heroku-postgresql:hobby-dev
|
||||||
# On Windows use double quotes for the time zone, e.g.
|
# On Windows use double quotes for the time zone, e.g.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user