2008-01-05 14:56:15 -08:00
|
|
|
### Django settings for archlinux project.
|
2007-11-03 00:45:10 -07:00
|
|
|
|
|
|
|
## Debug settings
|
|
|
|
DEBUG = False
|
2011-12-05 21:10:11 -08:00
|
|
|
TEMPLATE_DEBUG = False
|
|
|
|
#DEBUG_TOOLBAR = True
|
2011-08-16 14:30:14 -07:00
|
|
|
|
|
|
|
## For django debug toolbar
|
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
2007-11-03 00:45:10 -07:00
|
|
|
|
|
|
|
## Notification admins
|
|
|
|
ADMINS = (
|
2008-01-05 14:56:15 -08:00
|
|
|
# ('Joe Admin', 'joeadmin@example.com'),
|
2007-11-03 00:45:10 -07:00
|
|
|
)
|
|
|
|
|
2008-01-05 14:56:15 -08:00
|
|
|
## MySQL Database settings
|
2011-08-16 14:30:14 -07:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE' : 'django.db.backends.mysql',
|
|
|
|
'NAME' : 'archlinux',
|
|
|
|
'USER' : 'archlinux',
|
|
|
|
'PASSWORD': 'archlinux',
|
|
|
|
'HOST' : '',
|
|
|
|
'PORT' : '',
|
|
|
|
'OPTIONS' : {'init_command': 'SET storage_engine=InnoDB'},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
## Define cache settings
|
|
|
|
CACHES = {
|
|
|
|
'default': {
|
|
|
|
'BACKEND' : 'django.core.cache.backends.dummy.DummyCache',
|
|
|
|
#'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
|
|
|
|
#'LOCATION': '127.0.0.1:11211',
|
|
|
|
}
|
|
|
|
}
|
2010-01-31 11:13:46 -08:00
|
|
|
CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'
|
2011-08-16 14:30:14 -07:00
|
|
|
CACHE_MIDDLEWARE_SECONDS = 300
|
|
|
|
|
|
|
|
## Use secure session cookies? Make this true if you want all
|
|
|
|
## logged-in actions to take place over HTTPS only. If developing
|
|
|
|
## locally, you will want to use False.
|
|
|
|
SESSION_COOKIE_SECURE = False
|
2010-01-31 11:13:46 -08:00
|
|
|
|
2007-11-03 00:45:10 -07:00
|
|
|
## location for saving dev pictures
|
2011-08-16 14:30:14 -07:00
|
|
|
MEDIA_ROOT = '/srv/example.com/img/'
|
2007-11-03 00:45:10 -07:00
|
|
|
|
2008-01-05 14:56:15 -08:00
|
|
|
## web url for serving image files
|
2011-12-05 21:10:11 -08:00
|
|
|
MEDIA_URL = '/media/img/'
|
2007-11-03 00:45:10 -07:00
|
|
|
|
2008-01-05 14:56:15 -08:00
|
|
|
## Make this unique, and don't share it with anybody.
|
2007-11-03 00:45:10 -07:00
|
|
|
SECRET_KEY = '00000000000000000000000000000000000000000000000'
|
|
|
|
|
2011-08-16 14:30:14 -07:00
|
|
|
## CDN settings
|
|
|
|
CDN_ENABLED = False
|
2011-11-08 11:55:38 -08:00
|
|
|
# Scheme-relative URL, should work for both http/https
|
|
|
|
CDN_PATH = '//example.com/path/'
|
2007-12-29 16:49:18 -08:00
|
|
|
|
2011-08-16 14:30:14 -07:00
|
|
|
# vim: set ts=4 sw=4 et:
|