1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-26 21:27:11 +00:00

Test DB is SQLite3

This commit is contained in:
Yohann D'anello 2020-02-02 19:36:09 +01:00
parent 9b352582a3
commit eb198f7c4f

View File

@ -2,6 +2,8 @@
# Copyright (C) 2017-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
import os
# Needed to filter which host are trusted
ALLOWED_HOSTS = ['med.crans.org']
@ -30,12 +32,11 @@ SECRET_KEY = 'CHANGE ME !!!'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'club-med',
'USER': 'club-med',
'PASSWORD': 'CHANGE ME !!!',
'HOST': 'localhost',
},
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}