2023-06-09 19:51:18 +00:00
|
|
|
"""
|
|
|
|
Django settings for guild_journal project.
|
|
|
|
|
|
|
|
Generated by 'django-admin startproject' using Django 4.2.1.
|
|
|
|
|
|
|
|
For more information on this file, see
|
|
|
|
https://docs.djangoproject.com/en/4.2/topics/settings/
|
|
|
|
|
|
|
|
For the full list of settings and their values, see
|
|
|
|
https://docs.djangoproject.com/en/4.2/ref/settings/
|
|
|
|
"""
|
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
2023-06-13 18:35:41 +00:00
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
2023-06-09 19:51:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
|
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
2023-06-11 19:25:30 +00:00
|
|
|
"django.contrib.admin",
|
|
|
|
"django.contrib.auth",
|
|
|
|
"django.contrib.contenttypes",
|
|
|
|
"django.contrib.sessions",
|
|
|
|
"django.contrib.messages",
|
|
|
|
"django.contrib.staticfiles",
|
|
|
|
"guild",
|
2023-06-09 19:51:18 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
2023-06-11 19:25:30 +00:00
|
|
|
"django.middleware.security.SecurityMiddleware",
|
2023-06-13 18:35:41 +00:00
|
|
|
"whitenoise.middleware.WhiteNoiseMiddleware",
|
2023-06-11 19:25:30 +00:00
|
|
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
|
|
|
"django.middleware.common.CommonMiddleware",
|
|
|
|
"django.middleware.csrf.CsrfViewMiddleware",
|
|
|
|
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
|
|
|
"django.contrib.messages.middleware.MessageMiddleware",
|
|
|
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
2023-06-09 19:51:18 +00:00
|
|
|
]
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
ROOT_URLCONF = "guild_journal.urls"
|
2023-06-09 19:51:18 +00:00
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
2023-06-11 19:25:30 +00:00
|
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
|
|
"DIRS": [
|
2023-06-09 20:19:15 +00:00
|
|
|
BASE_DIR / "templates",
|
|
|
|
],
|
2023-06-11 19:25:30 +00:00
|
|
|
"APP_DIRS": True,
|
|
|
|
"OPTIONS": {
|
|
|
|
"context_processors": [
|
|
|
|
"django.template.context_processors.debug",
|
|
|
|
"django.template.context_processors.request",
|
|
|
|
"django.contrib.auth.context_processors.auth",
|
|
|
|
"django.contrib.messages.context_processors.messages",
|
2023-06-09 19:51:18 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
WSGI_APPLICATION = "guild_journal.wsgi.application"
|
2023-06-09 19:51:18 +00:00
|
|
|
|
|
|
|
# Password validation
|
|
|
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
|
|
|
|
|
|
|
AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
{
|
2023-06-11 19:25:30 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-11 19:25:30 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-11 19:25:30 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-11 19:25:30 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# Internationalization
|
|
|
|
# https://docs.djangoproject.com/en/4.2/topics/i18n/
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
LANGUAGE_CODE = "en-us"
|
2023-06-09 19:51:18 +00:00
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
TIME_ZONE = "UTC"
|
2023-06-09 19:51:18 +00:00
|
|
|
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
|
|
|
|
2023-06-13 18:35:41 +00:00
|
|
|
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
STATIC_URL = "static/"
|
2023-06-09 19:51:18 +00:00
|
|
|
|
2023-06-13 18:35:41 +00:00
|
|
|
STATIC_ROOT = BASE_DIR / "static"
|
|
|
|
|
|
|
|
STATICFILES_DIRS = []
|
2023-06-09 20:19:15 +00:00
|
|
|
|
2023-06-09 19:51:18 +00:00
|
|
|
# Default primary key field type
|
|
|
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|