Cleaned settings.

This commit is contained in:
Martin Mahner 2013-11-24 23:02:16 +01:00
parent cca489f71e
commit d14bde889f
4 changed files with 7 additions and 49 deletions

View file

@ -52,9 +52,6 @@ PROJECT_DIR, PROJECT_MODULE_NAME = os.path.split(
# Set the variable root to $VIRTUALENV/var. # Set the variable root to $VIRTUALENV/var.
PYTHON_BIN = os.path.dirname(sys.executable) 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') VAR_ROOT = os.path.join(os.path.dirname(PYTHON_BIN), 'var')
if not os.path.exists(VAR_ROOT): if not os.path.exists(VAR_ROOT):
os.mkdir(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' SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
#============================================================================== #==============================================================================
@ -146,4 +149,3 @@ LOGGING = {
}, },
} }
} }

View file

@ -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'

View file

@ -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'

View file

@ -3,9 +3,9 @@ django-mptt==0.6.0
pygments==1.6 pygments==1.6
requests==2.0.0 requests==2.0.0
#
# Deployment specific # Deployment specific
gunicorn==18.0 gunicorn==18.0
mysql-python==1.2.4
django==1.5.5 django==1.5.5
south==0.8.2 south==0.8.2
django-redis==3.3 django-redis==3.3