Commit b722a555 authored by Jocelyn Delalande's avatar Jocelyn Delalande

Mécanisme de paramètres par défaut, permettant de faire évoluer le settings.py fixes #87

parent baea81ea
*.pyc
*.sqlite
temp/
settings.py
local_settings.py
site_media/news-images/
\ No newline at end of file
......@@ -17,3 +17,9 @@ Install debian packages :
Install python requirements :
pip install -r requirements.txt
Then copy local_settings
cp local_setting.py{.example,}
And edit *local_settings.py* to set a `SECRET_KEY`.
# -*- coding: utf-8 -*-
# Django settings for project.
# Make this unique, and don't share it with anybody.
# generate your secret key with :
# python -c 'import random; import string; print "".join([random.SystemRandom().choice(string.digits + string.letters) for i in range(100)])'
SECRET_KEY = ''
from django.core.management.base import CommandError
from default_settings import *
try:
from local_settings import *
except ImportError:
raise CommandError('You should put a local_settings.py, see README.md')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment