<s> from django . core . management import execute_manager <EOL> try : <EOL> import settings <EOL> except ImportError , e : <EOL> import os <EOL> import sys <EOL> dname = os . path . dirname ( __file__ ) <EOL> sfile = '<STR_LIT>' <EOL> err = sys . stderr . write <EOL> err ( "<STR_LIT>" % ( dname , sfile ) ) <EOL> err ( "<STR_LIT>" % sfile ) <EOL> err ( "<STR_LIT>" % e . message ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> execute_manager ( settings ) </s>
