Update README.rst

This commit is contained in:
Daniel Greenfeld 2013-08-19 22:19:36 +02:00
parent e06772eec4
commit f99def2ea4

View File

@ -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()