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
|
|
|
|
|
2015-07-31 01:04:02 +03:00
|
|
|
APP_TITLE = 'Chrome Platform Status'
|
2013-06-28 19:51:44 +04:00
|
|
|
|
|
|
|
APP_VERSION = os.environ['CURRENT_VERSION_ID'].split('.')[0]
|
2013-06-29 00:12:31 +04:00
|
|
|
MEMCACHE_KEY_PREFIX = APP_VERSION # For memcache busting on new version
|
2013-06-28 19:51:44 +04:00
|
|
|
|
2013-06-30 04:44:49 +04:00
|
|
|
RSS_FEED_LIMIT = 15
|
2014-03-24 20:23:22 +04:00
|
|
|
|
2015-07-30 09:14:40 +03:00
|
|
|
VULCANIZE = True #PROD
|
2016-07-20 00:53:25 +03:00
|
|
|
|
|
|
|
DEFAULT_CACHE_TIME = 600 # seconds
|
2016-09-01 06:17:19 +03:00
|
|
|
|
|
|
|
if DEBUG:
|
|
|
|
TEMPLATE_CACHE_TIME = 0
|
|
|
|
else:
|
|
|
|
TEMPLATE_CACHE_TIME = 600 # seconds
|
2017-06-30 03:58:44 +03:00
|
|
|
|
2017-08-07 05:24:18 +03:00
|
|
|
SEND_EMAIL = True # Flag to turn off email notifications to feature owners.
|
|
|
|
SEND_PUSH_NOTIFICATIONS = True # Flag to turn off sending push notifications for all users.
|
2017-08-03 20:26:56 +03:00
|
|
|
|
|
|
|
FIREBASE_SERVER_KEY = os.environ.get('FIREBASE_SERVER_KEY')
|