Test DB is SQLite3

This commit is contained in:
Yohann D'anello 2020-02-02 19:36:09 +01:00
parent 9b352582a3
commit eb198f7c4f
1 changed files with 7 additions and 6 deletions

View File

@ -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',
},
} }