<s> """<STR_LIT>""" <EOL> import sys , os <EOL> from django import VERSION as DJANGO_VERSION <EOL> from os . path import join , dirname , abspath <EOL> try : <EOL> import rrdtool <EOL> except ImportError : <EOL> rrdtool = False <EOL> WEBAPP_VERSION = '<STR_LIT>' <EOL> DEBUG = False <EOL> JAVASCRIPT_DEBUG = False <EOL> WEB_DIR = dirname ( abspath ( __file__ ) ) <EOL> WEBAPP_DIR = dirname ( WEB_DIR ) <EOL> GRAPHITE_ROOT = dirname ( WEBAPP_DIR ) <EOL> THIRDPARTY_DIR = join ( WEB_DIR , '<STR_LIT>' ) <EOL> CONTENT_DIR = '<STR_LIT>' <EOL> CSS_DIR = '<STR_LIT>' <EOL> CONF_DIR = '<STR_LIT>' <EOL> DASHBOARD_CONF = '<STR_LIT>' <EOL> GRAPHTEMPLATES_CONF = '<STR_LIT>' <EOL> STORAGE_DIR = '<STR_LIT>' <EOL> WHITELIST_FILE = '<STR_LIT>' <EOL> INDEX_FILE = '<STR_LIT>' <EOL> LOG_DIR = '<STR_LIT>' <EOL> WHISPER_DIR = '<STR_LIT>' <EOL> RRD_DIR = '<STR_LIT>' <EOL> DATA_DIRS = [ ] <EOL> CLUSTER_SERVERS = [ ] <EOL> sys . path . insert ( <NUM_LIT:0> , WEBAPP_DIR ) <EOL> sys . path . append ( THIRDPARTY_DIR ) <EOL> MEMCACHE_HOSTS = [ ] <EOL> DEFAULT_CACHE_DURATION = <NUM_LIT> <EOL> LOG_CACHE_PERFORMANCE = False <EOL> REMOTE_STORE_FETCH_TIMEOUT = <NUM_LIT:6> <EOL> REMOTE_STORE_FIND_TIMEOUT = <NUM_LIT> <EOL> REMOTE_STORE_RETRY_DELAY = <NUM_LIT> <EOL> REMOTE_FIND_CACHE_DURATION = <NUM_LIT> <EOL> REMOTE_RENDERING = False <EOL> RENDERING_HOSTS = [ ] <EOL> REMOTE_RENDER_CONNECT_TIMEOUT = <NUM_LIT:1.0> <EOL> LOG_RENDERING_PERFORMANCE = False <EOL> CARBONLINK_HOSTS = [ "<STR_LIT>" ] <EOL> CARBONLINK_TIMEOUT = <NUM_LIT:1.0> <EOL> SMTP_SERVER = "<STR_LIT:localhost>" <EOL> DOCUMENTATION_URL = "<STR_LIT>" <EOL> ALLOW_ANONYMOUS_CLI = True <EOL> LOG_METRIC_ACCESS = False <EOL> LEGEND_MAX_ITEMS = <NUM_LIT:10> <EOL> USE_LDAP_AUTH = False <EOL> LDAP_SERVER = "<STR_LIT>" <EOL> LDAP_PORT = <NUM_LIT> <EOL> LDAP_SEARCH_BASE = "<STR_LIT>" <EOL> LDAP_BASE_USER = "<STR_LIT>" <EOL> LDAP_BASE_PASS = "<STR_LIT>" <EOL> LDAP_USER_QUERY = "<STR_LIT>" <EOL> LDAP_URI = None <EOL> USE_REMOTE_USER_AUTHENTICATION = False <EOL> LOGIN_URL = '<STR_LIT>' <EOL> ADDITIONAL_AUTHENTICATION_BACKENDS = [ ] <EOL> DATABASE_ENGINE = '<STR_LIT>' <EOL> DATABASE_NAME = '<STR_LIT>' <EOL> DATABASE_USER = '<STR_LIT>' <EOL> DATABASE_PASSWORD = '<STR_LIT>' <EOL> DATABASE_HOST = '<STR_LIT>' <EOL> DATABASE_PORT = '<STR_LIT>' <EOL> ADMINS = ( ) <EOL> MANAGERS = ADMINS <EOL> TEMPLATE_DIRS = ( <EOL> join ( WEB_DIR , '<STR_LIT>' ) , <EOL> ) <EOL> FLUSHRRDCACHED = '<STR_LIT>' <EOL> APPEND_SLASH = False <EOL> TEMPLATE_DEBUG = DEBUG <EOL> CACHE_BACKEND = "<STR_LIT>" <EOL> LANGUAGE_CODE = '<STR_LIT>' <EOL> SITE_ID = <NUM_LIT:1> <EOL> MEDIA_ROOT = '<STR_LIT>' <EOL> MEDIA_URL = '<STR_LIT>' <EOL> ADMIN_MEDIA_PREFIX = '<STR_LIT>' <EOL> SECRET_KEY = '<STR_LIT>' <EOL> if DJANGO_VERSION < ( <NUM_LIT:1> , <NUM_LIT:2> ) : <EOL> TEMPLATE_LOADERS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> else : <EOL> TEMPLATE_LOADERS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> ROOT_URLCONF = '<STR_LIT>' <EOL> INSTALLED_APPS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> AUTHENTICATION_BACKENDS = [ '<STR_LIT>' ] <EOL> try : <EOL> from graphite . local_settings import * <EOL> except ImportError : <EOL> print >> sys . stderr , "<STR_LIT>" <EOL> if not CONTENT_DIR : <EOL> CONTENT_DIR = join ( WEBAPP_DIR , '<STR_LIT:content>' ) <EOL> if not CSS_DIR : <EOL> CSS_DIR = join ( CONTENT_DIR , '<STR_LIT>' ) <EOL> if not CONF_DIR : <EOL> CONF_DIR = os . environ . get ( '<STR_LIT>' , join ( GRAPHITE_ROOT , '<STR_LIT>' ) ) <EOL> if not DASHBOARD_CONF : <EOL> DASHBOARD_CONF = join ( CONF_DIR , '<STR_LIT>' ) <EOL> if not GRAPHTEMPLATES_CONF : <EOL> GRAPHTEMPLATES_CONF = join ( CONF_DIR , '<STR_LIT>' ) <EOL> if not STORAGE_DIR : <EOL> STORAGE_DIR = os . environ . get ( '<STR_LIT>' , join ( GRAPHITE_ROOT , '<STR_LIT>' ) ) <EOL> if not WHITELIST_FILE : <EOL> WHITELIST_FILE = join ( STORAGE_DIR , '<STR_LIT>' , '<STR_LIT>' ) <EOL> if not INDEX_FILE : <EOL> INDEX_FILE = join ( STORAGE_DIR , '<STR_LIT:index>' ) <EOL> if not LOG_DIR : <EOL> LOG_DIR = join ( STORAGE_DIR , '<STR_LIT>' , '<STR_LIT>' ) <EOL> if not WHISPER_DIR : <EOL> WHISPER_DIR = join ( STORAGE_DIR , '<STR_LIT>' ) <EOL> if not RRD_DIR : <EOL> RRD_DIR = join ( STORAGE_DIR , '<STR_LIT>' ) <EOL> if not DATA_DIRS : <EOL> if rrdtool and os . path . exists ( RRD_DIR ) : <EOL> DATA_DIRS = [ WHISPER_DIR , RRD_DIR ] <EOL> else : <EOL> DATA_DIRS = [ WHISPER_DIR ] <EOL> if '<STR_LIT>' in DATABASE_ENGINE and not DATABASE_NAME : <EOL> DATABASE_NAME = join ( STORAGE_DIR , '<STR_LIT>' ) <EOL> if MEMCACHE_HOSTS : <EOL> CACHE_BACKEND = '<STR_LIT>' + '<STR_LIT:;>' . join ( MEMCACHE_HOSTS ) + ( '<STR_LIT>' % DEFAULT_CACHE_DURATION ) <EOL> if USE_LDAP_AUTH and LDAP_URI is None : <EOL> LDAP_URI = "<STR_LIT>" % ( LDAP_SERVER , LDAP_PORT ) <EOL> if USE_REMOTE_USER_AUTHENTICATION : <EOL> MIDDLEWARE_CLASSES += ( '<STR_LIT>' , ) <EOL> AUTHENTICATION_BACKENDS . insert ( <NUM_LIT:0> , '<STR_LIT>' ) <EOL> if USE_LDAP_AUTH : <EOL> AUTHENTICATION_BACKENDS . insert ( <NUM_LIT:0> , '<STR_LIT>' ) </s>
