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 = [
|
|
|
|
'tasks.apps.TasksConfig',
|
2020-12-15 01:46:09 -05:00
|
|
|
'widget_tweaks',
|
2020-12-22 15:15:43 -05:00
|
|
|
'markdownx',
|
|
|
|
'markdownify',
|
2020-12-03 12:31:39 -05:00
|
|
|
'django.contrib.admin',
|
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
]
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
|
'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',
|
|
|
|
]
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'recmaint.urls'
|
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
2020-12-14 13:22:14 -05:00
|
|
|
'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
2020-12-03 12:31:39 -05: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',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'recmaint.wsgi.application'
|
|
|
|
|
|
|
|
|
2020-12-14 13:26:47 -05:00
|
|
|
# Default URL to redirect to after authentication
|
|
|
|
LOGIN_REDIRECT_URL = '/'
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
# Internationalization
|
|
|
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
|
|
|
STATIC_URL = '/static/'
|