<s> import os <EOL> from django . core . management import execute_manager <EOL> if not os . environ . has_key ( "<STR_LIT>" ) : <EOL> if not os . environ . has_key ( "<STR_LIT>" ) : <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> else : <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" % os . environ [ "<STR_LIT>" ] <EOL> settings_module = os . environ [ "<STR_LIT>" ] <EOL> try : <EOL> settings = __import__ ( settings_module , globals ( ) , locals ( ) , [ '<STR_LIT>' ] , - <NUM_LIT:1> ) <EOL> except ImportError : <EOL> import sys <EOL> sys . stderr . write ( "<STR_LIT>" % settings_module ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> execute_manager ( settings ) </s>
