From patchwork Tue Oct 11 10:35:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 4623 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BF8BE23DEF for ; Tue, 11 Oct 2011 10:35:18 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id B5D03A18301 for ; Tue, 11 Oct 2011 10:35:18 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id 5so1953429eyg.11 for ; Tue, 11 Oct 2011 03:35:18 -0700 (PDT) Received: by 10.223.17.3 with SMTP id q3mr14654646faa.28.1318329318494; Tue, 11 Oct 2011 03:35:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs152883laf; Tue, 11 Oct 2011 03:35:18 -0700 (PDT) Received: by 10.227.145.135 with SMTP id d7mr866294wbv.48.1318329315445; Tue, 11 Oct 2011 03:35:15 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gd5si15787034wbb.137.2011.10.11.03.35.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Oct 2011 03:35:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RDZg2-0008Sv-Se for ; Tue, 11 Oct 2011 10:35:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id D083EE03DF for ; Tue, 11 Oct 2011 10:35:14 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 260 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 260: Import devserver conditionally Message-Id: <20111011103514.21793.11907.launchpad@ackee.canonical.com> Date: Tue, 11 Oct 2011 10:35:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14124"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: e7f9c67cc9cff4afb38274004293eefc91bdadaf ------------------------------------------------------------ revno: 260 committer: Zygmunt Krynicki branch nick: trunk timestamp: Tue 2011-10-11 11:58:59 +0200 message: Import devserver conditionally modified: lava_server/settings/development.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 === modified file 'lava_server/settings/development.py' --- lava_server/settings/development.py 2011-10-11 09:58:00 +0000 +++ lava_server/settings/development.py 2011-10-11 09:58:59 +0000 @@ -156,7 +156,11 @@ STATICFILES_DIRS = [('lava-server', os.path.join(PROJECT_SRC_DIR, 'htdocs'))] -INSTALLED_APPS += ['devserver'] +try: + import devserver + INSTALLED_APPS += ['devserver'] +except ImportError: + pass # Login redirects back to home LOGIN_REDIRECT_URL = '/'