summaryrefslogtreecommitdiff
path: root/workshop_portal/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'workshop_portal/settings.py')
-rw-r--r--workshop_portal/settings.py36
1 files changed, 15 insertions, 21 deletions
diff --git a/workshop_portal/settings.py b/workshop_portal/settings.py
index 46dc9b7..f1805d2 100644
--- a/workshop_portal/settings.py
+++ b/workshop_portal/settings.py
@@ -13,17 +13,17 @@ https://docs.djangoproject.com/en/1.10/ref/settings/
import os
import sys
from local_settings import (
- EMAIL_HOST,
- EMAIL_PORT,
- EMAIL_HOST_USER,
- EMAIL_HOST_PASSWORD,
- EMAIL_USE_TLS,
- SENDER_EMAIL
- )
+ EMAIL_HOST,
+ EMAIL_PORT,
+ EMAIL_HOST_USER,
+ EMAIL_HOST_PASSWORD,
+ EMAIL_USE_TLS,
+ SENDER_EMAIL
+)
+
# 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/1.10/howto/deployment/checklist/
@@ -35,7 +35,6 @@ DEBUG = True
ALLOWED_HOSTS = []
-
# Application definition
INSTALLED_APPS = [
@@ -51,15 +50,13 @@ INSTALLED_APPS = [
'teams',
]
-MIDDLEWARE_CLASSES = [
+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 = 'workshop_portal.urls'
@@ -85,15 +82,14 @@ WSGI_APPLICATION = 'workshop_portal.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES = {
- 'default': {
+ 'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'TEST': {
'NAME': 'mytestdatabase',
},
- }
}
-
+}
# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
@@ -113,7 +109,6 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
-
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
@@ -127,7 +122,6 @@ USE_L10N = True
USE_TZ = True
-
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
@@ -143,7 +137,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "workshop_app", "data")
LOG_FOLDER = os.path.join(BASE_DIR, "workshop_app", "logs")
-#Email Connection Settings
+# Email Connection Settings
EMAIL_HOST = EMAIL_HOST
EMAIL_HOST_USER = EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = EMAIL_HOST_PASSWORD
@@ -154,12 +148,12 @@ SENDER_EMAIL = SENDER_EMAIL
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
-#Change this to the production url
-PRODUCTION_URL = 'your_production_url'
+# Change this to the production url
+PRODUCTION_URL = 'http://localhost:8000'
ADMIN_EMAIL = 'your admin email'
-#Set True or False to view/hide
+# Set True or False to view/hide
SHOW_WORKSHOP_STATS = True
LOGIN_REDIRECT_URL = '/profile'