Commit b3103939 authored by Jamesie Pic's avatar Jamesie Pic

Added a sample config.json for local development.

parent c1cad87c
{
"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": ""
}
......@@ -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'
......
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