2021-03-23 17:08:00 -04:00
|
|
|
"""
|
|
|
|
Django settings for member_paperwork project.
|
|
|
|
|
|
|
|
Generated by 'django-admin startproject' using Django 3.1.7.
|
|
|
|
|
|
|
|
For more information on this file, see
|
|
|
|
https://docs.djangoproject.com/en/3.1/topics/settings/
|
|
|
|
|
|
|
|
For the full list of settings and their values, see
|
|
|
|
https://docs.djangoproject.com/en/3.1/ref/settings/
|
|
|
|
"""
|
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|
|
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = []
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
2022-02-11 13:48:47 -05:00
|
|
|
"django.contrib.admin",
|
|
|
|
"django.contrib.auth",
|
|
|
|
"django.contrib.contenttypes",
|
|
|
|
"django.contrib.sessions",
|
|
|
|
"django.contrib.messages",
|
|
|
|
"django.contrib.staticfiles",
|
|
|
|
"django_admin_logs",
|
|
|
|
"membershipworks.apps.MembershipworksConfig",
|
|
|
|
"paperwork.apps.PaperworkConfig",
|
2021-03-23 17:08:00 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
2022-02-11 13:48:47 -05:00
|
|
|
"django.middleware.security.SecurityMiddleware",
|
|
|
|
"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",
|
2021-03-23 17:08:00 -04:00
|
|
|
]
|
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
ROOT_URLCONF = "member_paperwork.urls"
|
2021-03-23 17:08:00 -04:00
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
2022-02-11 13:48:47 -05:00
|
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
|
|
"DIRS": [],
|
|
|
|
"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",
|
2021-03-23 17:08:00 -04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
WSGI_APPLICATION = "member_paperwork.wsgi.application"
|
2021-03-23 17:08:00 -04:00
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
2021-03-23 17:08:00 -04:00
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
DATABASE_ROUTERS = [
|
|
|
|
"membershipworks.routers.MembershipWorksRouter",
|
|
|
|
"paperwork.routers.PaperworkRouter",
|
|
|
|
]
|
2021-03-23 17:08:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Internationalization
|
|
|
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
LANGUAGE_CODE = "en-us"
|
|
|
|
TIME_ZONE = "UTC"
|
2021-03-23 17:08:00 -04:00
|
|
|
USE_I18N = True
|
|
|
|
USE_L10N = True
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
|
|
|
|
2022-02-11 13:48:47 -05:00
|
|
|
STATIC_URL = "/static/"
|