Compare commits

..

No commits in common. "3eae827ed5a499d1c559a305d32b11ac28c4f02e" and "582eb9e1e02801ff5ce381b4cfefe86fca1e4aac" have entirely different histories.

3 changed files with 16 additions and 30 deletions

View file

@ -19,9 +19,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-lt9sfgmvcrjuiz!=l)3f50x&333&p4wi60t1@jdjtrho43ytl+"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = []
@ -68,6 +70,17 @@ TEMPLATES = [
WSGI_APPLICATION = "config.wsgi.application"
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
@ -90,9 +103,9 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/4.0/topics/i18n/
LANGUAGE_CODE = "en-gb"
LANGUAGE_CODE = "en-us"
TIME_ZONE = "Europe/London"
TIME_ZONE = "UTC"
USE_I18N = True

View file

@ -1,17 +1 @@
from .base import *
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-lt9sfgmvcrjuiz!=l)3f50x&333&p4wi60t1@jdjtrho43ytl+"

View file

@ -1,11 +0,0 @@
import os
from django.core.exceptions import ImproperlyConfigured
from .base import *
SECRET_KEY = os.environ.get("SECRET_KEY", None)
if not SECRET_KEY:
raise ImproperlyConfigured("Set the SECRET_KEY environment variable")