<s> import os <EOL> import sys <EOL> SUPPORTED_ENVS = ( <EOL> '<STR_LIT:test>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> SETTINGS_MODULES = { <EOL> '<STR_LIT:test>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> ENV = os . environ . get ( '<STR_LIT>' , '<STR_LIT:test>' ) <EOL> ENV = ENV . lower ( ) <EOL> if ENV not in SUPPORTED_ENVS : <EOL> raise Exception ( '<STR_LIT>' % ENV ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> os . environ . setdefault ( '<STR_LIT>' , SETTINGS_MODULES [ ENV ] ) <EOL> from django . core . management import execute_from_command_line <EOL> execute_from_command_line ( sys . argv ) </s>
