2013-08-16 15:35:18 +04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
Django settings for {{cookiecutter.project_name}} project.
|
|
|
|
|
|
|
|
For more information on this file, see
|
|
|
|
https://docs.djangoproject.com/en/dev/topics/settings/
|
|
|
|
|
|
|
|
For the full list of settings and their values, see
|
|
|
|
https://docs.djangoproject.com/en/dev/ref/settings/
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
|
|
import os
|
2013-08-16 17:52:03 +04:00
|
|
|
from os.path import join
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-17 16:19:31 +04:00
|
|
|
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
|
|
|
|
try:
|
|
|
|
from S3 import CallingFormat
|
|
|
|
AWS_CALLING_FORMAT = CallingFormat.SUBDOMAIN
|
|
|
|
except ImportError:
|
|
|
|
# TODO: Fix this where even if in Dev this class is called.
|
|
|
|
pass
|
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
from configurations import Configuration, values
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-08-16 15:54:47 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
class Common(Configuration):
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-17 16:19:31 +04:00
|
|
|
########## APP CONFIGURATION
|
|
|
|
DJANGO_APPS = (
|
|
|
|
# Default Django apps:
|
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sites',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
|
|
|
|
# Useful template tags:
|
|
|
|
# 'django.contrib.humanize',
|
|
|
|
|
|
|
|
# Admin
|
|
|
|
'django.contrib.admin',
|
|
|
|
)
|
|
|
|
THIRD_PARTY_APPS = (
|
|
|
|
'south', # Database migration helpers:
|
|
|
|
'crispy_forms', # Form layouts
|
|
|
|
'avatar', # for user avatars
|
|
|
|
)
|
|
|
|
|
|
|
|
# Apps specific for this project go here.
|
|
|
|
LOCAL_APPS = (
|
|
|
|
'users', # custom users app
|
|
|
|
# Your stuff: custom apps go here
|
|
|
|
)
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
|
|
|
|
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
|
|
|
|
|
|
|
|
INSTALLED_APPS += (
|
|
|
|
# Needs to come last for now because of a weird edge case between
|
|
|
|
# South and allauth
|
|
|
|
'allauth', # registration
|
|
|
|
'allauth.account', # registration
|
|
|
|
'allauth.socialaccount', # registration
|
|
|
|
)
|
|
|
|
########## END APP CONFIGURATION
|
2013-08-18 11:44:26 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## MIDDLEWARE CONFIGURATION
|
2013-09-17 16:19:31 +04:00
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
'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',
|
|
|
|
)
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END MIDDLEWARE CONFIGURATION
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## DEBUG
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
|
|
|
|
DEBUG = values.BooleanValue(True)
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
########## END DEBUG
|
|
|
|
|
|
|
|
########## SECRET CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
|
|
|
# Note: This key only used for development and testing.
|
|
|
|
# In production, this is changed to a values.SecretValue() setting
|
|
|
|
SECRET_KEY = "CHANGEME!!!"
|
|
|
|
########## END SECRET CONFIGURATION
|
|
|
|
|
|
|
|
########## FIXTURE CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FIXTURE_DIRS
|
|
|
|
FIXTURE_DIRS = (
|
|
|
|
join(BASE_DIR, 'fixtures'),
|
|
|
|
)
|
|
|
|
########## END FIXTURE CONFIGURATION
|
2013-10-03 12:08:03 +04:00
|
|
|
|
|
|
|
########## EMAIL CONFIGURATION
|
|
|
|
EMAIL_BACKEND = values.Value('django.core.mail.backends.smtp.EmailBackend')
|
|
|
|
########## END EMAIL CONFIGURATION
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## MANAGER CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#admins
|
|
|
|
ADMINS = (
|
|
|
|
('{{cookiecutter.author_name}}', '{{cookiecutter.email}}'),
|
|
|
|
)
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
########## END MANAGER CONFIGURATION
|
2013-08-16 15:35:18 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## DATABASE CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
2013-09-20 04:41:12 +04:00
|
|
|
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}')
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END DATABASE CONFIGURATION
|
2013-08-16 15:54:47 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## CACHING
|
|
|
|
# Do this here because thanks to django-pylibmc-sasl and pylibmc memcacheify is painful to install on windows.
|
|
|
|
# memcacheify is what's used in Production
|
|
|
|
CACHES = {
|
|
|
|
'default': {
|
|
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
2013-09-17 16:19:31 +04:00
|
|
|
'LOCATION': ''
|
2013-09-15 17:02:13 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
########## END CACHING
|
|
|
|
|
|
|
|
########## GENERAL CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone
|
|
|
|
TIME_ZONE = 'America/Los_Angeles'
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#language-code
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#site-id
|
|
|
|
SITE_ID = 1
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-i18n
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-l10n
|
|
|
|
USE_L10N = True
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-tz
|
|
|
|
USE_TZ = True
|
|
|
|
########## END GENERAL CONFIGURATION
|
|
|
|
|
|
|
|
########## TEMPLATE CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
"allauth.account.context_processors.account",
|
|
|
|
"allauth.socialaccount.context_processors.socialaccount",
|
|
|
|
'django.core.context_processors.debug',
|
|
|
|
'django.core.context_processors.i18n',
|
|
|
|
'django.core.context_processors.media',
|
|
|
|
'django.core.context_processors.static',
|
|
|
|
'django.core.context_processors.tz',
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
|
'django.core.context_processors.request',
|
|
|
|
# Your stuff: custom template context processers go here
|
|
|
|
)
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
join(BASE_DIR, 'templates'),
|
|
|
|
)
|
2013-08-16 15:54:47 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
TEMPLATE_LOADERS = (
|
|
|
|
'django.template.loaders.filesystem.Loader',
|
|
|
|
'django.template.loaders.app_directories.Loader',
|
|
|
|
)
|
2013-08-16 15:54:47 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
# See: http://django-crispy-forms.readthedocs.org/en/latest/install.html#template-packs
|
|
|
|
CRISPY_TEMPLATE_PACK = 'bootstrap3'
|
|
|
|
########## END TEMPLATE CONFIGURATION
|
|
|
|
|
2013-09-26 23:23:58 +04:00
|
|
|
########## STATIC FILE CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root
|
2013-10-04 21:51:51 +04:00
|
|
|
STATIC_ROOT = join(os.path.dirname(BASE_DIR), 'staticfiles')
|
2013-09-26 23:23:58 +04:00
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS
|
|
|
|
STATICFILES_DIRS = (
|
2013-10-04 21:51:51 +04:00
|
|
|
join(BASE_DIR, 'static'),
|
2013-09-26 23:23:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#staticfiles-finders
|
|
|
|
STATICFILES_FINDERS = (
|
|
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
|
|
)
|
|
|
|
########## END STATIC FILE CONFIGURATION
|
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## MEDIA CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#media-root
|
|
|
|
MEDIA_ROOT = join(BASE_DIR, 'media')
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#media-url
|
|
|
|
MEDIA_URL = '/media/'
|
|
|
|
########## END MEDIA CONFIGURATION
|
|
|
|
|
|
|
|
########## URL Configuration
|
|
|
|
ROOT_URLCONF = 'config.urls'
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#wsgi-application
|
|
|
|
WSGI_APPLICATION = 'config.wsgi.application'
|
|
|
|
########## End URL Configuration
|
|
|
|
|
|
|
|
########## AUTHENTICATION CONFIGURATION
|
|
|
|
AUTHENTICATION_BACKENDS = (
|
|
|
|
"django.contrib.auth.backends.ModelBackend",
|
|
|
|
"allauth.account.auth_backends.AuthenticationBackend",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Some really nice defaults
|
|
|
|
ACCOUNT_AUTHENTICATION_METHOD = "username"
|
|
|
|
ACCOUNT_EMAIL_REQUIRED = True
|
|
|
|
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
|
|
|
|
########## END AUTHENTICATION CONFIGURATION
|
|
|
|
|
|
|
|
########## Custom user app defaults
|
|
|
|
# Select the correct user model
|
|
|
|
AUTH_USER_MODEL = "users.User"
|
|
|
|
LOGIN_REDIRECT_URL = "users:redirect"
|
|
|
|
########## END Custom user app defaults
|
|
|
|
|
|
|
|
########## SLUGLIFIER
|
|
|
|
AUTOSLUG_SLUGIFY_FUNCTION = "slugify.slugify"
|
|
|
|
########## END SLUGLIFIER
|
|
|
|
|
|
|
|
########## LOGGING CONFIGURATION
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#logging
|
|
|
|
# A sample logging configuration. The only tangible logging
|
|
|
|
# performed by this configuration is to send an email to
|
|
|
|
# the site admins on every HTTP 500 error when DEBUG=False.
|
|
|
|
# See http://docs.djangoproject.com/en/dev/topics/logging for
|
|
|
|
# more details on how to customize your logging configuration.
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'filters': {
|
|
|
|
'require_debug_false': {
|
|
|
|
'()': 'django.utils.log.RequireDebugFalse'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'handlers': {
|
|
|
|
'mail_admins': {
|
|
|
|
'level': 'ERROR',
|
|
|
|
'filters': ['require_debug_false'],
|
|
|
|
'class': 'django.utils.log.AdminEmailHandler'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'django.request': {
|
|
|
|
'handlers': ['mail_admins'],
|
|
|
|
'level': 'ERROR',
|
|
|
|
'propagate': True,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
########## END LOGGING CONFIGURATION
|
|
|
|
|
|
|
|
|
|
|
|
########## Your common stuff: Below this line define 3rd party libary settings
|
|
|
|
|
|
|
|
|
|
|
|
class Local(Common):
|
|
|
|
|
|
|
|
########## INSTALLED_APPS
|
2013-09-17 16:19:31 +04:00
|
|
|
INSTALLED_APPS = Common.INSTALLED_APPS
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END INSTALLED_APPS
|
|
|
|
|
|
|
|
########## Mail settings
|
2013-08-16 15:54:47 +04:00
|
|
|
EMAIL_HOST = "localhost"
|
|
|
|
EMAIL_PORT = 1025
|
2013-11-12 20:12:45 +04:00
|
|
|
EMAIL_BACKEND = values.Value('django.core.mail.backends.console.EmailBackend')
|
2013-09-15 17:02:13 +04:00
|
|
|
########## End mail settings
|
|
|
|
|
|
|
|
########## django-debug-toolbar
|
2013-09-17 16:19:31 +04:00
|
|
|
MIDDLEWARE_CLASSES = Common.MIDDLEWARE_CLASSES + ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
2013-08-16 15:54:47 +04:00
|
|
|
INSTALLED_APPS += ('debug_toolbar',)
|
|
|
|
|
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
|
|
|
|
|
|
|
DEBUG_TOOLBAR_CONFIG = {
|
|
|
|
'INTERCEPT_REDIRECTS': False,
|
|
|
|
'SHOW_TEMPLATE_CONTEXT': True,
|
|
|
|
}
|
2013-09-15 17:02:13 +04:00
|
|
|
########## end django-debug-toolbar
|
2013-09-23 08:15:37 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## Your local stuff: Below this line define 3rd party libary settings
|
2013-08-16 15:54:47 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
|
|
|
|
class Production(Common):
|
|
|
|
|
|
|
|
########## INSTALLED_APPS
|
2013-09-17 16:19:31 +04:00
|
|
|
INSTALLED_APPS = Common.INSTALLED_APPS
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END INSTALLED_APPS
|
|
|
|
|
|
|
|
########## SECRET KEY
|
|
|
|
SECRET_KEY = values.SecretValue()
|
|
|
|
########## END SECRET KEY
|
|
|
|
|
|
|
|
########## django-secure
|
|
|
|
INSTALLED_APPS += ("djangosecure", )
|
|
|
|
|
|
|
|
# set this to 60 seconds and then to 518400 when you can prove it works
|
|
|
|
SECURE_HSTS_SECONDS = 60
|
2013-09-26 23:23:58 +04:00
|
|
|
SECURE_HSTS_INCLUDE_SUBDOMAINS = values.BooleanValue(True)
|
|
|
|
SECURE_FRAME_DENY = values.BooleanValue(True)
|
|
|
|
SECURE_CONTENT_TYPE_NOSNIFF = values.BooleanValue(True)
|
|
|
|
SECURE_BROWSER_XSS_FILTER = values.BooleanValue(True)
|
2013-10-28 22:57:28 +04:00
|
|
|
SESSION_COOKIE_SECURE = values.BooleanValue(False)
|
2013-09-26 23:23:58 +04:00
|
|
|
SESSION_COOKIE_HTTPONLY = values.BooleanValue(True)
|
|
|
|
SECURE_SSL_REDIRECT = values.BooleanValue(True)
|
2013-09-15 17:02:13 +04:00
|
|
|
########## end django-secure
|
2013-08-16 15:54:47 +04:00
|
|
|
|
|
|
|
########## SITE CONFIGURATION
|
|
|
|
# Hosts/domain names that are valid for this site
|
|
|
|
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
|
|
|
|
ALLOWED_HOSTS = ["*"]
|
|
|
|
########## END SITE CONFIGURATION
|
|
|
|
|
|
|
|
INSTALLED_APPS += ("gunicorn", )
|
|
|
|
|
|
|
|
########## STORAGE CONFIGURATION
|
|
|
|
# See: http://django-storages.readthedocs.org/en/latest/index.html
|
|
|
|
INSTALLED_APPS += (
|
|
|
|
'storages',
|
|
|
|
)
|
|
|
|
|
|
|
|
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
|
|
|
|
STATICFILES_STORAGE = DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
|
|
|
|
|
|
|
|
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
|
2013-09-15 17:02:13 +04:00
|
|
|
AWS_ACCESS_KEY_ID = values.SecretValue()
|
|
|
|
AWS_SECRET_ACCESS_KEY = values.SecretValue()
|
|
|
|
AWS_STORAGE_BUCKET_NAME = values.SecretValue()
|
2013-08-16 15:54:47 +04:00
|
|
|
AWS_AUTO_CREATE_BUCKET = True
|
|
|
|
AWS_QUERYSTRING_AUTH = False
|
|
|
|
|
|
|
|
# AWS cache settings, don't change unless you know what you're doing:
|
|
|
|
AWS_EXPIREY = 60 * 60 * 24 * 7
|
|
|
|
AWS_HEADERS = {
|
|
|
|
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIREY,
|
|
|
|
AWS_EXPIREY)
|
|
|
|
}
|
|
|
|
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
|
|
|
STATIC_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
|
|
|
|
########## END STORAGE CONFIGURATION
|
|
|
|
|
|
|
|
########## EMAIL
|
2013-09-15 17:02:13 +04:00
|
|
|
DEFAULT_FROM_EMAIL = values.Value(
|
2013-08-29 11:16:22 +04:00
|
|
|
'{{cookiecutter.project_name}} <{{cookiecutter.project_name}}-noreply@{{cookiecutter.domain_name}}>')
|
2013-09-15 17:02:13 +04:00
|
|
|
EMAIL_HOST = values.Value('smtp.sendgrid.com')
|
|
|
|
EMAIL_HOST_PASSWORD = values.SecretValue(environ_prefix="", environ_name="SENDGRID_PASSWORD")
|
|
|
|
EMAIL_HOST_USER = values.SecretValue(environ_prefix="", environ_name="SENDGRID_USERNAME")
|
|
|
|
EMAIL_PORT = values.IntegerValue(587, environ_prefix="", environ_name="EMAIL_PORT")
|
|
|
|
EMAIL_SUBJECT_PREFIX = values.Value('[{{cookiecutter.project_name}}] ', environ_name="EMAIL_SUBJECT_PREFIX")
|
2013-08-16 15:54:47 +04:00
|
|
|
EMAIL_USE_TLS = True
|
|
|
|
SERVER_EMAIL = EMAIL_HOST_USER
|
|
|
|
########## END EMAIL
|
2013-08-16 16:07:28 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## TEMPLATE CONFIGURATION
|
2013-08-16 23:23:16 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
|
2013-08-16 23:23:16 +04:00
|
|
|
TEMPLATE_LOADERS = (
|
|
|
|
('django.template.loaders.cached.Loader', (
|
|
|
|
'django.template.loaders.filesystem.Loader',
|
|
|
|
'django.template.loaders.app_directories.Loader',
|
|
|
|
)),
|
|
|
|
)
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END TEMPLATE CONFIGURATION
|
2013-08-16 20:23:22 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## CACHING
|
|
|
|
# Only do this here because thanks to django-pylibmc-sasl and pylibmc memcacheify is painful to install on windows.
|
2013-09-23 08:15:37 +04:00
|
|
|
CACHES = values.CacheURLValue(default="memcached://127.0.0.1:11211")
|
2013-09-15 17:02:13 +04:00
|
|
|
########## END CACHING
|
2013-08-16 20:23:22 +04:00
|
|
|
|
2013-09-15 17:02:13 +04:00
|
|
|
########## Your production stuff: Below this line define 3rd party libary settings
|
2013-08-16 20:23:22 +04:00
|
|
|
|