tildetown-admin/ttadmin/settings.py

96 lines
2.7 KiB
Python
Raw Normal View History

2016-10-18 04:30:02 +00:00
"""
2016-12-18 06:52:21 +00:00
Local development settings for tildetown-admin.
2016-10-18 04:30:02 +00:00
2016-12-18 06:52:21 +00:00
To run this For Real, you'll want to:
2016-10-18 04:30:02 +00:00
2016-12-18 06:52:21 +00:00
* set a different SECRET_KEY
* change the password for the database or delete the password and use ident
* change DEBUG to False
2016-10-18 04:30:02 +00:00
"""
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__)))
SECRET_KEY = '!=)!vw!1fi^8*@f78-*go@a@37(obaqq6b1*=zh8vk#ur$ms@t'
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
2016-11-20 05:34:38 +00:00
'users'
2016-10-18 04:30:02 +00:00
]
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',
]
2016-11-20 05:34:38 +00:00
ROOT_URLCONF = 'urls'
2016-10-18 04:30:02 +00:00
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
2016-11-30 07:47:37 +00:00
'DIRS': ['templates'],
2016-10-18 04:30:02 +00: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',
],
},
},
]
2016-11-20 05:34:38 +00:00
WSGI_APPLICATION = 'wsgi.application'
2016-10-18 04:30:02 +00:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ttadmin',
'USER': 'ttadmin',
'PASSWORD': 'ttadmin',
'HOST': 'localhost',
2016-10-18 04:30:02 +00:00
}
}
# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL = '/static/'