|
|
"""
|
|
|
Django settings for djangoMad project.
|
|
|
|
|
|
For more information on this file, see
|
|
|
https://docs.djangoproject.com/en/1.7/topics/settings/
|
|
|
|
|
|
For the full list of settings and their values, see
|
|
|
https://docs.djangoproject.com/en/1.7/ref/settings/
|
|
|
"""
|
|
|
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
|
import os
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
|
SECRET_KEY = '^c1l3d35+q28^66d2pc1qlu(k$wmw^*gg3rfitz^s)t=9eu1ui'
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = ['localhost:8000', '127.0.0.1', 'localhost', '10.10.120.60']
|
|
|
|
|
|
ADMINS = (('Bill Rideout', 'brideout@haystack.mit.edu'),)
|
|
|
|
|
|
EMAIL_HOST = 'hyperion.haystack.mit.edu'
|
|
|
|
|
|
SEND_BROKEN_LINK_EMAILS = True
|
|
|
|
|
|
MANAGERS = (('Bill Rideout', 'brideout@haystack.mit.edu'),)
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
INSTALLED_APPS = (
|
|
|
'django.contrib.admin',
|
|
|
'django.contrib.auth',
|
|
|
'django.contrib.contenttypes',
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
'madweb',
|
|
|
'django_bootstrap_calendar',
|
|
|
'bootstrap3',
|
|
|
'apps.login',
|
|
|
'apps.updata',
|
|
|
)
|
|
|
|
|
|
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 = 'djangoMad.urls'
|
|
|
|
|
|
WSGI_APPLICATION = 'djangoMad.wsgi.application'
|
|
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
{
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
'DIRS': [
|
|
|
os.path.join(BASE_DIR, "templates"),
|
|
|
],
|
|
|
'APP_DIRS': True,
|
|
|
'OPTIONS': {
|
|
|
'context_processors': [
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
'django.template.context_processors.debug',
|
|
|
'django.template.context_processors.i18n',
|
|
|
'django.template.context_processors.media',
|
|
|
'django.template.context_processors.static',
|
|
|
'django.template.context_processors.tz',
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
'django.template.context_processors.request',
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
]
|
|
|
|
|
|
|
|
|
# Database
|
|
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
|
|
|
|
|
DATABASES = {
|
|
|
'default': {
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
'NAME': 'madrigal.sqlite',
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
# Internationalization
|
|
|
# https://docs.djangoproject.com/en/1.7/topics/i18n/
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
|
TIME_ZONE = 'UTC'
|
|
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
USE_L10N = True
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
|
|
# Example: "/home/media/media.lawrence.com/media/"
|
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
|
|
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
|
# trailing slash.
|
|
|
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
|
|
|
MEDIA_URL = '/media/'
|
|
|
|
|
|
# Absolute path to the directory static files should be collected to.
|
|
|
# Don't put anything in this directory yourself; store your static files
|
|
|
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
|
|
# Example: "/home/media/media.lawrence.com/static/"
|
|
|
# STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
|
|
|
|
|
# URL prefix for static files.
|
|
|
# Example: "http://media.lawrence.com/static/"
|
|
|
STATIC_URL = '/madrigal/static/'
|
|
|
STATIC_ROOT = '/madrigal/source/madpy/djangoMad/static_files/'
|
|
|
|
|
|
BOOTSTRAP3 = {
|
|
|
# Include jQuery with Bootstrap JavaScript (affects django-bootstrap3 template tags)
|
|
|
'jquery_url': '/madrigal/static/jquery.min.js',
|
|
|
'include_jquery': True,
|
|
|
}
|
|
|
|