mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-02 11:52:27 +02:00
Minor changes in settings.py
Cleanup of useless comments that were generated by Django itself.
This commit is contained in:
parent
5c2ac34163
commit
c2b271b825
1 changed files with 1 additions and 23 deletions
|
@ -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
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
from sentry_sdk.integrations.django import DjangoIntegration
|
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_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
BASE_URL = os.getenv("BASE_URL", "http://127.0.0.1:8000")
|
BASE_URL = os.getenv("BASE_URL", "http://127.0.0.1:8000")
|
||||||
|
|
||||||
PROJECT_NAME = os.getenv("PROJECT_NAME", "La Chariotte")
|
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!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = os.getenv(
|
SECRET_KEY = os.getenv(
|
||||||
"SECRET_KEY", "django-insecure-f66vu+dj79c(5u(w2i0indkrlf$qtt!b$dmotnm%5!0a*9+=my"
|
"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"):
|
if os.getenv("ALLOWED_HOSTS"):
|
||||||
ALLOWED_HOSTS += os.getenv("ALLOWED_HOSTS").split(",")
|
ALLOWED_HOSTS += os.getenv("ALLOWED_HOSTS").split(",")
|
||||||
|
|
||||||
# Application definition
|
# Applications & middlewares
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"la_chariotte.order",
|
"la_chariotte.order",
|
||||||
|
@ -129,15 +112,10 @@ AUTH_USER_MODEL = "accounts.CustomUser"
|
||||||
# https://docs.djangoproject.com/en/4.1/topics/i18n/
|
# https://docs.djangoproject.com/en/4.1/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = "fr-FR"
|
LANGUAGE_CODE = "fr-FR"
|
||||||
|
|
||||||
TIME_ZONE = "Europe/Paris"
|
TIME_ZONE = "Europe/Paris"
|
||||||
|
|
||||||
TIME_INPUT_FORMATS = ["%H:%M"]
|
TIME_INPUT_FORMATS = ["%H:%M"]
|
||||||
|
|
||||||
DATE_INPUT_FORMATS = ["%d/%m/%Y"]
|
DATE_INPUT_FORMATS = ["%d/%m/%Y"]
|
||||||
|
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
|
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue