added secret key

This commit is contained in:
Jonas Obrist 2012-08-18 02:47:33 +02:00
parent e35acb0cdf
commit 99b4c6b5df
2 changed files with 5 additions and 1 deletions

View file

@ -9,11 +9,12 @@ How-To
* Clone the repo.
* Add a git remote called ``heroku`` pointing at ``git@heroku.com:insertcreativenamehere.git``.
* Create a file called .env and add two values: ``DATABASE_URL=sqlite://localhost/local.db`` and ``DEBUG=True``.
* Create a file called .env and add: ``DATABASE_URL=sqlite://localhost/local.db``, ``SECRET_KEY=<some secret key>`` and ``DEBUG=True``.
* Run ``make run``.
* Open http://localhost:8000
* Hack.
**NEVER** commit your .env file!
Run local commands
------------------

View file

@ -13,6 +13,9 @@ LANGUAGE_CODE = 'en'
SITE_ID = 1
assert 'SECRET_KEY' in os.environ, 'Set SECRET_KEY in your .env file!'
SECRET_KEY = os.environ['SECRET_KEY']
USE_L10N = USE_I18N = False
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')