cookiecutter-django/{{cookiecutter.repo_name}}
Daniel Greenfeld 0914c7a923 Merge pull request #12 from Bouke/patch-6
Typo in cookiecutter variable domain name
2013-08-29 00:38:24 -07:00
..
{{cookiecutter.repo_name}} Typo in cookiecutter variable 2013-08-29 09:16:22 +02:00
docs Fix the layout to match the cookie cutter pattern 2013-08-15 20:03:08 +02:00
requirements Fixes deployment to Heroku 2013-08-28 12:53:08 +02:00
CONTRIBUTORS.txt Repo contributors should start with project author 2013-08-20 10:07:49 -04:00
LICENSE.rst Update LICENSE.rst 2013-08-16 12:58:06 +02:00
Procfile Customization prep 2013-08-16 18:23:22 +02:00
README.rst License is BSD, not MIT 2013-08-29 08:57:20 +02:00
requirements.txt Update requirements.txt 2013-08-20 20:27:07 +02:00

{{cookiecutter.project_name}}
==============================

{{cookiecutter.description}}


LICENSE: BSD

Deployment
------------

* heroku create
* heroku addons:add heroku-postgresql:dev
* heroku addons:add pgbackups
* heroku addons:add sendgrid:starter
* heroku pg:promote HEROKU_POSTGRESQL_COLOR
* heroku config:add AWS_ACCESS_KEY_ID=YOUR_ID
* heroku config:add AWS_SECRET_ACCESS_KEY=YOUR_KEY
* heroku config:add AWS_STORAGE_BUCKET_NAME=BUCKET
* 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

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.name = "{{cookiecutter.project_name}}"
    site.save()