2013-12-14 03:41:04 +01:00
|
|
|
"""
|
|
|
|
settings for development / unit tests
|
|
|
|
"""
|
|
|
|
|
|
|
|
from .base import *
|
|
|
|
|
|
|
|
DEBUG = True
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
2015-12-27 18:09:51 +01:00
|
|
|
SECRET_KEY = 'UNSECURE_BECAUSE_WE_ARE_DEVELOPING'
|
2014-05-30 01:18:50 +02:00
|
|
|
WE_HAVE_TLS = False # True if you run a https site also, suggest that site to users if they work on the http site.
|
|
|
|
CSRF_COOKIE_SECURE = WE_HAVE_TLS
|
|
|
|
SESSION_COOKIE_SECURE = WE_HAVE_TLS
|
2013-12-14 03:41:04 +01:00
|
|
|
|
|
|
|
BASEDOMAIN = 'nsupdate.info'
|
|
|
|
WWW_HOST = 'localhost:8000'
|
|
|
|
# for debugging IP detection on localhost:
|
|
|
|
WWW_IPV4_HOST = 'localhost:8000'
|
|
|
|
WWW_IPV6_HOST = 'ip6-localhost:8000'
|
|
|
|
|
2014-08-27 17:35:29 +02:00
|
|
|
# ALLOWED_HOSTS is not needed here, as DEBUG is True
|
2013-12-14 03:41:04 +01:00
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
|
|
) + MIDDLEWARE_CLASSES
|
|
|
|
INTERNAL_IPS = ['127.0.0.1', '::1', ] # needed for DebugToolbar!
|
|
|
|
|
|
|
|
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
|
|
|
INSTALLED_APPS += (
|
|
|
|
'debug_toolbar',
|
|
|
|
)
|
2014-11-26 10:49:25 +01:00
|
|
|
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|