Minor changes in settings.py

Cleanup of useless comments that were generated by Django itself.
This commit is contained in:
Alexis Métaireau 2023-08-12 16:12:25 +02:00
parent 5c2ac34163
commit c2b271b825

View file

@ -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