<s> import os <EOL> import logging <EOL> path = lambda root , * a : os . path . join ( root , * a ) <EOL> ADMINS = ( ) <EOL> MANAGERS = ADMINS <EOL> class DeploymentType : <EOL> PRODUCTION = "<STR_LIT>" <EOL> DEV = "<STR_LIT>" <EOL> SOLO = "<STR_LIT>" <EOL> STAGING = "<STR_LIT>" <EOL> dict = { <EOL> SOLO : <NUM_LIT:1> , <EOL> PRODUCTION : <NUM_LIT:2> , <EOL> DEV : <NUM_LIT:3> , <EOL> STAGING : <NUM_LIT:4> <EOL> } <EOL> if '<STR_LIT>' in os . environ : <EOL> DEPLOYMENT = os . environ [ '<STR_LIT>' ] . upper ( ) <EOL> else : <EOL> DEPLOYMENT = DeploymentType . SOLO <EOL> SITE_ID = DeploymentType . dict [ DEPLOYMENT ] <EOL> DEBUG = DEPLOYMENT != DeploymentType . PRODUCTION <EOL> STATIC_MEDIA_SERVER = DEPLOYMENT == DeploymentType . SOLO <EOL> TEMPLATE_DEBUG = DEBUG <EOL> INTERNAL_IPS = ( '<STR_LIT:127.0.0.1>' , ) <EOL> if DEBUG : <EOL> LOG_LEVEL = logging . DEBUG <EOL> else : <EOL> LOG_LEVEL = logging . INFO <EOL> USE_SYSLOG = DEPLOYMENT != DeploymentType . SOLO <EOL> if DEPLOYMENT != DeploymentType . SOLO : <EOL> SESSION_ENGINE = "<STR_LIT>" <EOL> CSRF_FAILURE_VIEW = '<STR_LIT>' <EOL> CACHE_TIMEOUT = <NUM_LIT> <EOL> MAX_CACHE_ENTRIES = <NUM_LIT> <EOL> CACHE_MIDDLEWARE_SECONDS = <NUM_LIT> <EOL> CACHE_MIDDLEWARE_KEY_PREFIX = '<STR_LIT>' <EOL> if DEPLOYMENT == DeploymentType . SOLO : <EOL> CACHES = { <EOL> '<STR_LIT:default>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> } <EOL> else : <EOL> CACHES = { <EOL> '<STR_LIT:default>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : CACHE_TIMEOUT , <EOL> '<STR_LIT>' : MAX_CACHE_ENTRIES <EOL> } <EOL> } <EOL> DEFAULT_FROM_EMAIL = "<STR_LIT>" <EOL> SERVER_EMAIL = "<STR_LIT>" <EOL> CONTACT_EMAIL = '<STR_LIT>' <EOL> TIME_ZONE = '<STR_LIT>' <EOL> LANGUAGE_CODE = '<STR_LIT>' <EOL> USE_I18N = False <EOL> TEMPLATE_LOADERS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> if DEPLOYMENT != DeploymentType . SOLO : <EOL> TEMPLATE_LOADERS = ( <EOL> ( '<STR_LIT>' , TEMPLATE_LOADERS ) , <EOL> ) <EOL> ROOT_URLCONF = '<STR_LIT>' <EOL> TEST_RUNNER = '<STR_LIT>' </s>
