Clean settings

This commit is contained in:
Gabriel Augendre 2022-04-25 22:03:02 +02:00
parent 1f932b5f49
commit 7157e990d6

View file

@ -46,9 +46,9 @@ admins = env("ADMINS")
if admins: if admins:
ADMINS = list(map(lambda x: tuple(x.split("|")), admins)) ADMINS = list(map(lambda x: tuple(x.split("|")), admins))
DEFAULT_FROM_EMAIL = "Gab's Notes <checkout@mg.gabnotes.org>" DEFAULT_FROM_EMAIL = "Checkout <checkout@mg.gabnotes.org>"
SERVER_EMAIL = "Gab's Notes <checkout@mg.gabnotes.org>" SERVER_EMAIL = "Checkout <checkout@mg.gabnotes.org>"
EMAIL_SUBJECT_PREFIX = "[Cheese checkout] " EMAIL_SUBJECT_PREFIX = "[Checkout] "
EMAIL_TIMEOUT = 30 EMAIL_TIMEOUT = 30
ANYMAIL = { ANYMAIL = {
@ -109,7 +109,7 @@ ROOT_URLCONF = "checkout.urls"
TEMPLATES = [ TEMPLATES = [
{ {
"BACKEND": "django.template.backends.django.DjangoTemplates", "BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": ["checkout/templates"], "DIRS": [],
"APP_DIRS": True, "APP_DIRS": True,
"OPTIONS": { "OPTIONS": {
"context_processors": [ "context_processors": [
@ -181,11 +181,11 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/ # https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = "/static/" STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR.parent / "staticfiles" STATIC_ROOT = BASE_DIR.parent / "staticfiles"
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
MEDIA_URL = "/media/" MEDIA_URL = "media/"
MEDIA_ROOT = BASE_DIR.parent / "media" MEDIA_ROOT = BASE_DIR.parent / "media"
AUTH_USER_MODEL = "common.User" AUTH_USER_MODEL = "common.User"