mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 05:00:31 +02:00
Production settings
This commit is contained in:
@ -98,19 +98,6 @@ FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
|
||||
WSGI_APPLICATION = 'tfjm.wsgi.application'
|
||||
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
}
|
||||
}
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
|
||||
|
||||
@ -185,3 +172,8 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
||||
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
||||
|
||||
DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap4.html'
|
||||
|
||||
if os.getenv("TFJM_STAGE", "dev") == "prod":
|
||||
from .settings_prod import *
|
||||
else:
|
||||
from .settings_dev import *
|
||||
|
Reference in New Issue
Block a user