From eb198f7c4f933760fb5e053a6d5d3f4f6815d433 Mon Sep 17 00:00:00 2001 From: Yohann D'anello Date: Sun, 2 Feb 2020 19:36:09 +0100 Subject: [PATCH] Test DB is SQLite3 --- med/settings_local.example.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/med/settings_local.example.py b/med/settings_local.example.py index 214c600..8b2e503 100644 --- a/med/settings_local.example.py +++ b/med/settings_local.example.py @@ -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'), + } }