diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 394: enable devserver if it is available (i.e. if an instance is using buildout-development.cfg)

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

Commit Message

Michael-Doyle Hudson Sept. 20, 2012, 8:57 p.m. UTC
------------------------------------------------------------
revno: 394
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Fri 2012-09-21 08:56:45 +1200
message:
  enable devserver if it is available (i.e. if an instance is using buildout-development.cfg)
modified:
  lava_server/settings/common.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/settings/common.py'
--- lava_server/settings/common.py	2012-07-09 09:37:58 +0000
+++ lava_server/settings/common.py	2012-09-20 20:56:45 +0000
@@ -122,6 +122,12 @@ 
     'south',
 ]
 
+try:
+    import devserver
+    INSTALLED_APPS += ['devserver']
+except ImportError:
+    pass
+
 TEMPLATE_CONTEXT_PROCESSORS = [
     "django.contrib.auth.context_processors.auth",
     "django.core.context_processors.debug",