2013-03-07 22:29:38 +04:00
|
|
|
import os
|
|
|
|
|
|
|
|
#Hack to get custom tags working django 1.3 + python27.
|
|
|
|
INSTALLED_APPS = (
|
|
|
|
#'nothing',
|
|
|
|
'customtags',
|
|
|
|
)
|
|
|
|
|
|
|
|
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = (
|
2013-04-12 21:19:21 +04:00
|
|
|
os.path.join(ROOT_DIR, 'templates')
|
2013-03-07 22:29:38 +04:00
|
|
|
)
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
if (os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine') or
|
|
|
|
os.getenv('SETTINGS_MODE') == 'prod'):
|
|
|
|
PROD = True
|
|
|
|
else:
|
|
|
|
PROD = False
|
|
|
|
|
|
|
|
DEBUG = not PROD
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
2013-06-14 21:43:49 +04:00
|
|
|
APP_TITLE = 'Chromium Dashboard'
|
2013-06-28 19:51:44 +04:00
|
|
|
|
|
|
|
APP_VERSION = os.environ['CURRENT_VERSION_ID'].split('.')[0]
|
|
|
|
MEMCACHE_KEY_PREFIX = APP_VERSION
|
|
|
|
|