<s> import sys <EOL> import os <EOL> sys . path . append ( "<STR_LIT>" ) <EOL> PROJECT_ROOT = os . path . dirname ( __file__ ) <EOL> ROOT_URLCONF = '<STR_LIT>' <EOL> DEBUG = True <EOL> CACHE_BACKEND = '<STR_LIT>' <EOL> TIME_ZONE = '<STR_LIT>' <EOL> INSTALLED_APPS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ) <EOL> MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> TEMPLATE_CONTEXT_PROCESSORS = ( <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ) <EOL> try : <EOL> SECRET_KEY <EOL> except NameError : <EOL> SECRET_FILE = os . path . join ( PROJECT_ROOT , '<STR_LIT>' ) <EOL> try : <EOL> SECRET_KEY = open ( SECRET_FILE ) . read ( ) . strip ( ) <EOL> except IOError : <EOL> try : <EOL> from random import choice <EOL> SECRET_KEY = '<STR_LIT>' . join ( [ choice ( '<STR_LIT>' ) for i in range ( <NUM_LIT:50> ) ] ) <EOL> secret = file ( SECRET_FILE , '<STR_LIT:w>' ) <EOL> secret . write ( SECRET_KEY ) <EOL> secret . close ( ) <EOL> except IOError : <EOL> Exception ( '<STR_LIT>' % SECRET_FILE ) </s>
