2020-12-03 12:31:39 -05:00
|
|
|
"""
|
|
|
|
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
|
2020-12-03 12:31:39 -05:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
2020-12-18 14:09:11 -05:00
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
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",
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
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",
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|
|
|
|
|
2022-01-24 23:37:04 -05:00
|
|
|
ROOT_URLCONF = "recmaint.urls"
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
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",
|
2020-12-03 12:31:39 -05:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2022-01-24 23:37:04 -05:00
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
2021-05-19 13:28:38 -04:00
|
|
|
|
2022-01-24 23:37:04 -05:00
|
|
|
WSGI_APPLICATION = "recmaint.wsgi.application"
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
|
2020-12-14 13:26:47 -05:00
|
|
|
# Default URL to redirect to after authentication
|
2022-01-24 23:37:04 -05:00
|
|
|
LOGIN_REDIRECT_URL = "/"
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
# 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"
|
2020-12-03 12:31:39 -05:00
|
|
|
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/"
|