cookiecutter-django/{{cookiecutter.repo_name}}
2013-09-26 13:22:41 -04:00
..
{{cookiecutter.repo_name}} Use the console.EmailBackend to avoid error: [Errno 61] Connection refused when trying to send email to a non-existent local SMTP server 2013-09-26 13:22:41 -04:00
docs Fix the layout to match the cookie cutter pattern 2013-08-15 20:03:08 +02:00
requirements use less bleeding edge django 1.5.x 2013-09-26 13:08:38 -04: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 Update CACHE controls to work better with django-configurations 2013-09-22 14:42:56 +02:00
requirements.txt Post @jezdez cleanup 2013-09-17 14:19:31 +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 addons:add memcachier:dev
* heroku pg:promote HEROKU_POSTGRESQL_COLOR
* heroku config:add DJANGO_CONFIGURATION=Production
* heroku config:add DJANGO_SECRET_KEY=RANDOM_SECRET_KEY
* heroku config:add DJANGO_AWS_ACCESS_KEY_ID=YOUR_ID
* heroku config:add DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
* heroku config:add DJANGO_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.domain_name}}"
    site.name = "{{cookiecutter.project_name}}"
    site.save()