cmsmanage/recmaint/settings/base.py

89 lines
2.3 KiB
Python
Raw Normal View History

"""
Django settings for recmaint project.
Generated by 'django-admin startproject' using Django 3.1.3.
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/
"""
2020-12-14 13:22:14 -05:00
import os
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-01-24 23:37:04 -05:00
"tasks.apps.TasksConfig",
"rentals.apps.RentalsConfig",
"widget_tweaks",
"markdownx",
"markdownify",
"recurrence",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
]
MIDDLEWARE = [
2022-01-24 23:37:04 -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",
]
2022-01-24 23:37:04 -05:00
ROOT_URLCONF = "recmaint.urls"
TEMPLATES = [
{
2022-01-24 23:37:04 -05:00
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_DIR, "templates")],
"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",
],
},
},
]
2022-01-24 23:37:04 -05:00
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
2022-01-24 23:37:04 -05:00
WSGI_APPLICATION = "recmaint.wsgi.application"
# Default URL to redirect to after authentication
2022-01-24 23:37:04 -05:00
LOGIN_REDIRECT_URL = "/"
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
2022-01-24 23:37:04 -05:00
LANGUAGE_CODE = "en-us"
TIME_ZONE = "America/New_York"
USE_I18N = False
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
2022-01-24 23:37:04 -05:00
STATIC_URL = "/static/"