1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 07:51:09 +02:00

postgresql by default

This commit is contained in:
2020-02-02 23:55:35 +01:00
parent cf0ced6021
commit 978dc1de6c
3 changed files with 20 additions and 10 deletions

View File

@ -2,8 +2,6 @@
# 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']
@ -32,11 +30,14 @@ 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.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'med',
'USER': 'med',
'PASSWORD': 'password_to_store_in_env',
'HOST': 'db',
'PORT': '',
}
}