manage.py 357 Bytes
Newer Older
1 2 3 4
#!/usr/bin/env python
import os
import sys

David Haynes's avatar
David Haynes committed
5 6 7 8 9
if os.environ['GO_ENV'] == 'production':
    settings = "settings.production"
else:
    settings = "settings.local"

10
if __name__ == "__main__":
David Haynes's avatar
David Haynes committed
11
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings)
12 13 14 15

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)