diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 382: set the DJANGO_SETTINGS_MODULE environment variable

Message ID 20120710155913.8442.57350.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Andy Doan July 10, 2012, 3:59 p.m. UTC
------------------------------------------------------------
revno: 382
committer: Andy Doan <andy.doan@linaro.org>
branch nick: lava-server
timestamp: Mon 2012-07-09 18:03:30 -0500
message:
  set the DJANGO_SETTINGS_MODULE environment variable
  
  This may be needed by a subprocess we may launch.
modified:
  lava_server/manage.py


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/manage.py'
--- lava_server/manage.py	2012-05-07 04:14:55 +0000
+++ lava_server/manage.py	2012-07-09 23:03:30 +0000
@@ -109,6 +109,7 @@ 
             ddst = self.args.instance_template.format(
                 instance=self.args.instance)
             os.environ["DJANGO_DEBIAN_SETTINGS_TEMPLATE"] = ddst
+        os.environ["DJANGO_SETTINGS_MODULE"] = settings_module
         settings = __import__(settings_module, fromlist=[''])
         # XXX execute_manager is deprecated in Django 1.4.
         from django.core.management import execute_manager