mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Reorganised settings. Removed Redis cache from base settings.
This commit is contained in:
parent
77c259ee39
commit
1fce9e38f6
4 changed files with 44 additions and 10 deletions
|
@ -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
22
dpaste/settings/local.py
Normal 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
22
dpaste/settings/test.py
Normal 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'
|
Loading…
Reference in a new issue