module documentation

Django settings for saskatoon project.

Generated by 'django-admin startproject' using Django 3.0.7.

For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/

For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/

django-dotenv is used to load environment variables from the saskatoon/.env file. Please check INSTALL.md for more details.

Function get_drf_template_mode Switch to the DRF browsable API
Constant ALLOWED_HOSTS Undocumented
Constant AUTH_PASSWORD_VALIDATORS Undocumented
Constant AUTH_USER_MODEL Undocumented
Constant BASE_DIR Undocumented
Constant CACHES Undocumented
Constant CRISPY_TEMPLATE_PACK Undocumented
Constant CSRF_COOKIE_SECURE Undocumented
Constant CSRF_FAILURE_VIEW Undocumented
Constant DATABASES Undocumented
Constant DEFAULT_AUTO_FIELD Undocumented
Constant DEFAULT_FROM_EMAIL Undocumented
Constant DOMAIN_NAME Undocumented
Constant EMAIL_BACKEND Undocumented
Constant EMAIL_HOST Undocumented
Constant EMAIL_HOST_PASSWORD Undocumented
Constant EMAIL_HOST_USER Undocumented
Constant EMAIL_LIST_OUTPUT Undocumented
Constant EMAIL_PORT Undocumented
Constant EMAIL_USE_TLS Undocumented
Constant EQUIPMENT_POINTS_PDF_PATH Undocumented
Constant INSTALLED_APPS Undocumented
Constant INTERNAL_IPS Undocumented
Constant LANGUAGE_CODE Undocumented
Constant LANGUAGES Undocumented
Constant LOCALE_PATHS Undocumented
Constant LOGGING Undocumented
Constant LOGIN_REDIRECT_URL Undocumented
Constant LOGIN_URL Undocumented
Constant LOGOUT_REDIRECT_URL Undocumented
Constant MEDIA_ROOT Undocumented
Constant MEDIA_URL Undocumented
Constant MIDDLEWARE Undocumented
Constant REST_FRAMEWORK Undocumented
Constant ROOT_URLCONF Undocumented
Constant ROSETTA_ACCESS_CONTROL_FUNCTION Undocumented
Constant SECRET_KEY Undocumented
Constant SEND_MAIL_FAIL_SILENTLY Undocumented
Constant SERVER_IP Undocumented
Constant STATIC_ROOT Undocumented
Constant STATIC_URL Undocumented
Constant TEMPLATES Undocumented
Constant TIME_ZONE Undocumented
Constant USE_I18N Undocumented
Constant USE_L10N Undocumented
Constant USE_TZ Undocumented
Constant VOLUNTEER_WAIVER_PDF_PATH Undocumented
Constant WSGI_APPLICATION Undocumented
Variable DEBUG Undocumented
Variable dotenv Undocumented
def get_drf_template_mode() -> str: (source)

Switch to the DRF browsable API

ALLOWED_HOSTS: list[str] = (source)

Undocumented

Value
['localhost', '127.0.0.1']
AUTH_PASSWORD_VALIDATORS: list = (source)

Undocumented

Value
[{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValida
tor'},
 {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator'},
 {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'},
 {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}]
AUTH_USER_MODEL: str = (source)

Undocumented

Value
'member.AuthUser'
BASE_DIR = (source)

Undocumented

Value
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Undocumented

Value
{'default': {'BACKEND': 'django_redis.cache.RedisCache',
             'LOCATION': 'redis://127.0.0.1:6379/1',
             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
CRISPY_TEMPLATE_PACK: str = (source)

Undocumented

Value
'bootstrap4'
CSRF_COOKIE_SECURE: bool = (source)

Undocumented

Value
True
CSRF_FAILURE_VIEW: str = (source)

Undocumented

Value
'sitebase.views.handler403_csrf_failue'
DATABASES = (source)

Undocumented

Value
{'default': {'ENGINE': os.getenv('SASKATOON_DB_ENGINE'),
             'NAME': os.getenv('SASKATOON_DB_NAME'),
             'USER': os.getenv('SASKATOON_DB_USER'),
             'PASSWORD': os.getenv('SASKATOON_DB_PASSWORD'),
             'HOST': os.getenv('SASKATOON_DB_HOST')}}
DEFAULT_AUTO_FIELD: str = (source)

Undocumented

Value
'django.db.models.AutoField'
DEFAULT_FROM_EMAIL = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_FROM')
DOMAIN_NAME = (source)

Undocumented

Value
os.getenv('SASKATOON_DOMAIN_NAME', '')
EMAIL_BACKEND = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_BACKEND')
EMAIL_HOST = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_HOST')
EMAIL_HOST_PASSWORD = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_HOST_PASSWORD')
EMAIL_HOST_USER = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_HOST_USER')
EMAIL_LIST_OUTPUT = (source)

Undocumented

Value
os.path.join(BASE_DIR, 'logs/emaillist.csv')
EMAIL_PORT = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_PORT')
EMAIL_USE_TLS = (source)

Undocumented

Value
os.getenv('SASKATOON_EMAIL_USE_TLS')
EQUIPMENT_POINTS_PDF_PATH = (source)

Undocumented

Value
os.path.join(MEDIA_ROOT, 'guides/equipment_points.pdf')
INSTALLED_APPS: list[str] = (source)

Undocumented

Value
['dal',
 'dal_select2',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
...
INTERNAL_IPS: list[str] = (source)

Undocumented

Value
['127.0.0.1']
LANGUAGE_CODE: str = (source)

Undocumented

Value
'en'
LANGUAGES: list = (source)

Undocumented

Value
[('fr', 'Français'), ('en', 'English')]
LOCALE_PATHS: list[str] = (source)

Undocumented

Value
['harvest/locale/', 'member/locale/', 'sitebase/locale/', 'saskatoon/locale/']

Undocumented

Value
{'version': 1,
 'disable_existing_loggers': False,
 'handlers': {'console': {'level': 'DEBUG',
                          'class': 'logging.StreamHandler',
                          'formatter': 'brief'},
              'file_django': {'level': 'INFO',
                              'class': 'logging.handlers.TimedRotatingFileHandle
...
LOGIN_REDIRECT_URL: str = (source)

Undocumented

Value
'/'
LOGIN_URL: str = (source)

Undocumented

Value
'/login/'
LOGOUT_REDIRECT_URL: str = (source)

Undocumented

Value
'/'
MEDIA_ROOT = (source)

Undocumented

Value
os.path.join(BASE_DIR, 'media')
MEDIA_URL: str = (source)

Undocumented

Value
'/media/'
MIDDLEWARE: list[str] = (source)

Undocumented

Value
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
...
REST_FRAMEWORK = (source)

Undocumented

Value
{'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'],
 'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'
],
 'PAGINATE_BY': 10,
 'DEFAULT_RENDERER_CLASSES': (get_drf_template_mode(),
                              'rest_framework.renderers.JSONRenderer'),
 'DEFAULT_PAGINATION_CLASS': 'saskatoon.pagination.BasicPageNumberPagination'}
ROOT_URLCONF: str = (source)

Undocumented

Value
'saskatoon.urls'
ROSETTA_ACCESS_CONTROL_FUNCTION: str = (source)

Undocumented

Value
'saskatoon.utils.is_translator'
SECRET_KEY = (source)

Undocumented

Value
os.getenv('SASKATOON_SECRET_KEY')
SEND_MAIL_FAIL_SILENTLY = (source)

Undocumented

Value
not EMAIL_HOST
SERVER_IP = (source)

Undocumented

Value
os.getenv('SASKATOON_SERVER_IP', '')
STATIC_ROOT = (source)

Undocumented

Value
os.path.join(BASE_DIR, 'static')
STATIC_URL: str = (source)

Undocumented

Value
'/static/'
TEMPLATES: list[dict] = (source)

Undocumented

Value
[{'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.aut
...
TIME_ZONE = (source)

Undocumented

Value
os.getenv('SASKATOON_TIME_ZONE') or 'UTC'
USE_I18N: bool = (source)

Undocumented

Value
True
USE_L10N: bool = (source)

Undocumented

Value
True

Undocumented

Value
True
VOLUNTEER_WAIVER_PDF_PATH = (source)

Undocumented

Value
os.path.join(MEDIA_ROOT, 'guides/volunteer_waiver.pdf')
WSGI_APPLICATION: str = (source)

Undocumented

Value
'saskatoon.wsgi.application'

Undocumented

Undocumented