<s> '''<STR_LIT>''' <EOL> import os <EOL> import sys <EOL> import pkg_resources <EOL> from utils import append_to_local_setting <EOL> import ldap <EOL> sys . path . append ( os . path . dirname ( __file__ ) + '<STR_LIT>' ) <EOL> try : <EOL> from localsettings import SRC_DIR as location <EOL> sys . path . append ( location ) <EOL> except ImportError : <EOL> try : <EOL> location = os . path . abspath ( pkg_resources . resource_filename ( <EOL> pkg_resources . Requirement . parse ( "<STR_LIT>" ) , "<STR_LIT>" ) ) <EOL> except pkg_resources . DistributionNotFound : <EOL> location = os . path . abspath ( <EOL> pkg_resources . resource_filename ( "<STR_LIT>" , "<STR_LIT:..>" ) ) <EOL> if location . endswith ( "<STR_LIT>" ) : <EOL> location = location [ : - <NUM_LIT:7> ] <EOL> else : <EOL> location = location + "<STR_LIT>" <EOL> SRC_DIR = location <EOL> '''<STR_LIT>''' <EOL> try : <EOL> from localsettings import CONF_DIR as location <EOL> except ImportError : <EOL> location = "<STR_LIT>" <EOL> CONF_DIR = location <EOL> '''<STR_LIT>''' <EOL> try : <EOL> from localsettings import STATIC_DOC_ROOT as location <EOL> except ImportError : <EOL> location = os . path . join ( SRC_DIR , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> STATIC_DOC_ROOT = location <EOL> '''<STR_LIT>''' <EOL> TIME_ZONE = '<STR_LIT>' <EOL> '''<STR_LIT>''' <EOL> LANGUAGE_CODE = '<STR_LIT>' <EOL> '''<STR_LIT>''' <EOL> USE_I18N = False <EOL> '''<STR_LIT>''' <EOL> try : <EOL> from localsettings import * <EOL> except ImportError : <EOL> pass <EOL> MEDIA_ROOT = os . path . join ( STATIC_DOC_ROOT , "<STR_LIT>" ) <EOL> '''<STR_LIT>''' <EOL> MEDIA_URL = '<STR_LIT>' <EOL> ADMIN_MEDIA_PREFIX = '<STR_LIT>' <EOL> SECRET_KEY = '<STR_LIT>' <EOL> '''<STR_LIT>''' <EOL> TEMPLATE_LOADERS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> append_to_local_setting ( <EOL> "<STR_LIT>" , TEMPLATE_LOADERS , globals ( ) ) <EOL> MIDDLEWARE_CLASSES = [ <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> append_to_local_setting ( <EOL> "<STR_LIT>" , MIDDLEWARE_CLASSES , globals ( ) , at_start = True , <EOL> ) <EOL> AUTHENTICATION_BACKENDS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> if ENABLE_LDAP_BACKEND : <EOL> AUTHENTICATION_BACKENDS . insert ( <NUM_LIT:1> , '<STR_LIT>' ) <EOL> append_to_local_setting ( <EOL> "<STR_LIT>" , AUTHENTICATION_BACKENDS , globals ( ) , <EOL> ) <EOL> ROOT_URLCONF = '<STR_LIT>' <EOL> TEMPLATE_DIRS = [ <EOL> os . path . join ( SRC_DIR , '<STR_LIT>' ) , <EOL> os . path . join ( SRC_DIR , '<STR_LIT>' ) , <EOL> os . path . join ( SRC_DIR , '<STR_LIT>' ) , <EOL> ] <EOL> append_to_local_setting ( <EOL> "<STR_LIT>" , TEMPLATE_DIRS , globals ( ) , <EOL> ) <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> '<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> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> append_to_local_setting ( <EOL> "<STR_LIT>" , INSTALLED_APPS , globals ( ) , at_start = True , <EOL> ) <EOL> LOGIN_REDIRECT_URL = '<STR_LIT:/>' <EOL> AUTH_PROFILE_MODULE = "<STR_LIT>" <EOL> ACCOUNT_ACTIVATION_DAYS = <NUM_LIT:3> <EOL> '''<STR_LIT>''' <EOL> AGGREGATE_LOGOS_DIR = "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> TEMPLATE_CONTEXT_PROCESSORS = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> append_to_local_setting ( <EOL> "<STR_LIT>" , TEMPLATE_CONTEXT_PROCESSORS , globals ( ) ) <EOL> '''<STR_LIT>''' <EOL> DEBUG = True <EOL> '''<STR_LIT>''' <EOL> try : <EOL> from localsettings import * <EOL> except ImportError : <EOL> pass <EOL> TEMPLATE_DEBUG = DEBUG <EOL> '''<STR_LIT>''' <EOL> DEBUG_PROPAGATE_EXCEPTIONS = DEBUG <EOL> '''<STR_LIT>''' <EOL> SESSION_COOKIE_NAME = "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> import urlparse <EOL> urlparse . uses_netloc . append ( "<STR_LIT:test>" ) <EOL> urlparse . uses_fragment . append ( "<STR_LIT:test>" ) </s>
