<s> """<STR_LIT>""" <EOL> from django . conf import settings <EOL> from django . core . management . base import BaseCommand <EOL> from django . template import Template , Context <EOL> from os import path , listdir <EOL> class Command ( BaseCommand ) : <EOL> requires_model_validation = False <EOL> def handle ( self , * args , ** noargs ) : <EOL> this_path = path . abspath ( path . dirname ( __file__ ) ) <EOL> tpl_file_name = path . join ( this_path , '<STR_LIT>' , '<STR_LIT>' ) <EOL> tpl_file = open ( tpl_file_name ) <EOL> tpl = Template ( tpl_file . read ( ) ) <EOL> courses = [ course for course in listdir ( settings . COURSES_BASEDIR ) <EOL> if course != '<STR_LIT>' ] <EOL> context = Context ( { <EOL> '<STR_LIT>' : settings . DATABASE_USER , <EOL> '<STR_LIT>' : settings . DATABASE_PASSWORD , <EOL> '<STR_LIT>' : settings . DATABASE_HOST , <EOL> '<STR_LIT>' : settings . DATABASE_NAME_PREFIX , <EOL> '<STR_LIT>' : settings . SPHINX_MEMORY , <EOL> '<STR_LIT>' : courses , <EOL> } ) <EOL> print tpl . render ( context ) </s>
