Modification form group pour voir les utilisateurs

This commit is contained in:
Ambulance Clerc
2022-05-02 08:31:03 +02:00
parent 6a3997424b
commit f410e3c5da
4 changed files with 69 additions and 15 deletions

View File

@@ -25,7 +25,11 @@ SECRET_KEY = 'django-insecure-j4jd&+4j^t_=@zr(#q@n!8e*58vkql6&_6w-t14ju8pw%ei%^s
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
cfg_dev_mode = False
ALLOWED_HOSTS = ["192.168.3.125","rh.ambulance-clerc.ch"]
if cfg_dev_mode:
ALLOWED_HOSTS.append("127.0.0.1")
CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
@@ -41,6 +45,7 @@ INSTALLED_APPS = [
'polls.apps.PollsConfig',
'vehicles.apps.VehiclesConfig',
'collabs.apps.CollabsConfig',
'custom_admin.apps.CustomAdminConfig',
'rangefilter',
@@ -80,23 +85,22 @@ WSGI_APPLICATION = 'Reskreen.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
"""
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
if cfg_dev_mode:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
}
"""
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': 'my.cnf',
},
else:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': 'my.cnf',
},
}
}
}
# Password validation