mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Update README.rst
This commit is contained in:
parent
e06772eec4
commit
f99def2ea4
|
@ -20,4 +20,14 @@ Deployment
|
|||
* git push heroku master
|
||||
* heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings
|
||||
* heroku run python {{cookiecutter.repo_name}}/manage.py migrate --settings=config.settings
|
||||
* heroku run python {{cookiecutter.repo_name}}/manage.py collectstatic --settings=config.settings
|
||||
* heroku run python {{cookiecutter.repo_name}}/manage.py collectstatic --settings=config.settings
|
||||
|
||||
Run this script: (TODO - automate this)
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.contrib.sites.models import Site
|
||||
site = Site.objects.get()
|
||||
site.domain = "{{cookiecutter.project_name}}.com"
|
||||
site.domain = "{{cookiecutter.project_name}}"
|
||||
site.save()
|
||||
|
|
Loading…
Reference in New Issue
Block a user