Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
b3103939
Commit
b3103939
authored
Oct 30, 2015
by
Jamesie Pic
Browse files
Added a sample config.json for local development.
parent
c1cad87c
Changes
2
Hide whitespace changes
Inline
Side-by-side
memopol/config.json.sample
0 → 100644
View file @
b3103939
{
"debug": true,
"secret_key": "notsecret",
"compotista_server": "http://compotista.dev.laquadrature.net/",
"toutatis_server": "http://toutatis.dev.laquadrature.net/",
"redis_db": 0,
"organization": "local",
"local": true,
"database_name": "db.sqlite",
"database_user": "",
"database_password": "",
"database_host": "",
"database_port": ""
}
memopol/settings.py
View file @
b3103939
...
...
@@ -121,7 +121,9 @@ DATABASES = {
}
}
if
get_param
(
'database_server'
)
==
'mysql'
:
if
get_param
(
'local'
):
DATABASES
[
'default'
][
'ENGINE'
]
=
'django.db.backends.sqlite3'
elif
get_param
(
'database_server'
)
==
'mysql'
:
DATABASES
[
'default'
][
'ENGINE'
]
=
'django.db.backends.mysql'
elif
get_param
(
'database_server'
)
==
'postgresql'
:
DATABASES
[
'default'
][
'ENGINE'
]
=
'django.db.backends.postgresql_psycopg2'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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