Created
August 13, 2012 12:03
-
-
Save darjeeling/3340053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == "__main__": | |
if os.environ.has_key("PRODUCTION"): | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "temporary.prod_settings") | |
else: | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "temporary.devel_settings") | |
from django.core.management import execute_from_command_line | |
execute_from_command_line(sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment