Skip to content
Snippets Groups Projects

Master

Merged Nico Vermaas requested to merge master into release
1000+ files
+ 116152
27
Compare changes
  • Side-by-side
  • Inline

Files

+ 15
23
"""
Django settings for atdb project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'cie-((m#n$br$6l53yash45*2^mwuux*2u)bad5(0flx@krnj9'
@@ -43,6 +28,9 @@ INSTALLED_APPS = [
'django_filters',
'django_extensions',
'bootstrap_pagination',
'django_tables2',
'bootstrap3',
'fontawesome-free'
]
MIDDLEWARE = [
@@ -91,14 +79,6 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 100
}
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'REPLACE_WITH_DB_JSON': False
}
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
@@ -189,6 +169,18 @@ LOGGING = {
}
}
from django.contrib.messages import constants as messages
MESSAGE_TAGS = {
messages.DEBUG: 'alert-secondary',
messages.INFO: 'alert-info',
messages.SUCCESS: 'alert-success',
messages.WARNING: 'alert-warning',
messages.ERROR: 'alert-danger',
}
LOGIN_REDIRECT_URL = '/atdb'
LOGOUT_REDIRECT_URL = '/atdb'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/
Loading