change the default for the DJANGO_SETTINGS_MODULE to be a little more flexible
authorDiane Trout <diane@ghic.org>
Tue, 5 May 2015 23:31:13 +0000 (16:31 -0700)
committerDiane Trout <diane@ghic.org>
Tue, 5 May 2015 23:31:13 +0000 (16:31 -0700)
manage.py

index 0515cd155a59333cc3fd043896247555f2027518..74a06d716094b51f77a5845a44d9dc9b248d8b4d 100755 (executable)
--- a/manage.py
+++ b/manage.py
@@ -1,9 +1,12 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import os
 import sys
+import socket
 
 if __name__ == "__main__":
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "htsworkflow.settings.local")
+    os.environ.setdefault(
+        "DJANGO_SETTINGS_MODULE",
+        "htsworkflow.settings.{}".format(socket.gethostname()))
 
     from django.core.management import execute_from_command_line