Reorganised settings. Removed Redis cache from base settings.

This commit is contained in:
Martin Mahner 2013-11-23 16:08:11 +01:00
parent 77c259ee39
commit 1fce9e38f6
4 changed files with 44 additions and 10 deletions

View file

@ -115,16 +115,6 @@ DATABASES = {
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
"default": {
"BACKEND": "redis_cache.cache.RedisCache",
"LOCATION": "127.0.0.1:6379:1",
"OPTIONS": {
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
}
}
}
#==============================================================================
# App specific settings
#==============================================================================

22
dpaste/settings/local.py Normal file
View file

@ -0,0 +1,22 @@
from dpaste.settings import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Martin Mahner', 'martin@mahner.org'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dpaste',
'USER': 'root',
'PASSWORD': '',
}
}
SECRET_KEY = 'dYWVXop)XYyUT+gqeBpoX]cTDweFJOsNC'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

22
dpaste/settings/test.py Normal file
View file

@ -0,0 +1,22 @@
from dpaste.settings import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Martin Mahner', 'martin@mahner.org'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dpaste',
'USER': 'root',
'PASSWORD': '',
}
}
SECRET_KEY = 'dYWVXop)XYyUT+gqeBpoX]cTDweFJOsNC'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'