mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Cleaned settings.
This commit is contained in:
parent
cca489f71e
commit
d14bde889f
4 changed files with 7 additions and 49 deletions
|
@ -52,9 +52,6 @@ PROJECT_DIR, PROJECT_MODULE_NAME = os.path.split(
|
|||
# Set the variable root to $VIRTUALENV/var.
|
||||
PYTHON_BIN = os.path.dirname(sys.executable)
|
||||
|
||||
if not os.path.exists(os.path.join(PYTHON_BIN, 'activate_this.py')):
|
||||
raise RuntimeError('Project needs to run in its own virtuelenv.')
|
||||
|
||||
VAR_ROOT = os.path.join(os.path.dirname(PYTHON_BIN), 'var')
|
||||
if not os.path.exists(VAR_ROOT):
|
||||
os.mkdir(VAR_ROOT)
|
||||
|
@ -113,6 +110,12 @@ DATABASES = {
|
|||
}
|
||||
}
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||
}
|
||||
}
|
||||
|
||||
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
|
||||
|
||||
#==============================================================================
|
||||
|
@ -146,4 +149,3 @@ LOGGING = {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
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'
|
|
@ -1,22 +0,0 @@
|
|||
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'
|
|
@ -3,9 +3,9 @@ django-mptt==0.6.0
|
|||
pygments==1.6
|
||||
requests==2.0.0
|
||||
|
||||
#
|
||||
# Deployment specific
|
||||
gunicorn==18.0
|
||||
mysql-python==1.2.4
|
||||
django==1.5.5
|
||||
south==0.8.2
|
||||
django-redis==3.3
|
||||
|
|
Loading…
Reference in a new issue