From c2b271b825417868516b51f4ad8cc2ad376ada3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Sat, 12 Aug 2023 16:12:25 +0200 Subject: [PATCH] Minor changes in settings.py Cleanup of useless comments that were generated by Django itself. --- la_chariotte/settings.py | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/la_chariotte/settings.py b/la_chariotte/settings.py index 443e48b..5f04f88 100644 --- a/la_chariotte/settings.py +++ b/la_chariotte/settings.py @@ -1,30 +1,13 @@ -""" -Django settings for la_chariotte project. - -Generated by 'django-admin startproject' using Django 4.1.7. - -For more information on this file, see -https://docs.djangoproject.com/en/4.1/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/4.1/ref/settings/ -""" import os from pathlib import Path import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration -# Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - BASE_URL = os.getenv("BASE_URL", "http://127.0.0.1:8000") - PROJECT_NAME = os.getenv("PROJECT_NAME", "La Chariotte") -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ - # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.getenv( "SECRET_KEY", "django-insecure-f66vu+dj79c(5u(w2i0indkrlf$qtt!b$dmotnm%5!0a*9+=my" @@ -37,7 +20,7 @@ ALLOWED_HOSTS = ["localhost", "127.0.0.1"] if os.getenv("ALLOWED_HOSTS"): ALLOWED_HOSTS += os.getenv("ALLOWED_HOSTS").split(",") -# Application definition +# Applications & middlewares INSTALLED_APPS = [ "la_chariotte.order", @@ -129,15 +112,10 @@ AUTH_USER_MODEL = "accounts.CustomUser" # https://docs.djangoproject.com/en/4.1/topics/i18n/ LANGUAGE_CODE = "fr-FR" - TIME_ZONE = "Europe/Paris" - TIME_INPUT_FORMATS = ["%H:%M"] - DATE_INPUT_FORMATS = ["%d/%m/%Y"] - USE_I18N = True - USE_TZ = True