mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-27 00:47:10 +00:00
Test DB is SQLite3
This commit is contained in:
parent
9b352582a3
commit
eb198f7c4f
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2017-2019 by BDE ENS Paris-Saclay
|
# Copyright (C) 2017-2019 by BDE ENS Paris-Saclay
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
# Needed to filter which host are trusted
|
# Needed to filter which host are trusted
|
||||||
ALLOWED_HOSTS = ['med.crans.org']
|
ALLOWED_HOSTS = ['med.crans.org']
|
||||||
|
|
||||||
@ -30,12 +32,11 @@ SECRET_KEY = 'CHANGE ME !!!'
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': 'club-med',
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||||
'USER': 'club-med',
|
}
|
||||||
'PASSWORD': 'CHANGE ME !!!',
|
|
||||||
'HOST': 'localhost',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user