Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lettravox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
test
lettravox
Commits
b722a555
Commit
b722a555
authored
May 30, 2015
by
Jocelyn Delalande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mécanisme de paramètres par défaut, permettant de faire évoluer le settings.py fixes #87
parent
baea81ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletion
+21
-1
.gitignore
.gitignore
+1
-1
README.md
README.md
+6
-0
default_settings.py
default_settings.py
+0
-0
local_settings.py.example
local_settings.py.example
+7
-0
settings.py
settings.py
+7
-0
No files found.
.gitignore
View file @
b722a555
*.pyc
*.sqlite
temp/
settings.py
local_
settings.py
site_media/news-images/
\ No newline at end of file
README.md
View file @
b722a555
...
...
@@ -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`
.
settings.py.example
→
default_settings.py
View file @
b722a555
File moved
local_settings.py.example
0 → 100644
View file @
b722a555
# -*- 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 = ''
settings.py
0 → 100644
View file @
b722a555
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'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment