<gh_stars>1-10
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    settings_module = 'settings{}'.format(['', '_test']['test' in sys.argv])
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    settings_module = 'settings{}'.format(['', '_test']['test' in sys.argv])
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
#!/usr/bin/env python