From patchwork Sun Dec 1 15:05:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Finucane X-Patchwork-Id: 1202876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Qs4X6R0nz9sP3 for ; Mon, 2 Dec 2019 02:05:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="tHPDQ5X0"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47Qs4T3TwQzDqXZ for ; Mon, 2 Dec 2019 02:05:29 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=that.guru (client-ip=199.181.239.236; helo=relay0236.mxlogin.com; envelope-from=stephen@that.guru; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="tHPDQ5X0"; dkim-atps=neutral Received: from relay0236.mxlogin.com (relay0236.mxlogin.com [199.181.239.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47Qs4L29VkzDqXD for ; Mon, 2 Dec 2019 02:05:21 +1100 (AEDT) Received: from filter004.mxroute.com (unknown [94.130.183.33]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay0236.mxlogin.com (Postfix) with ESMTPS id A945BCD3031E for ; Sun, 1 Dec 2019 09:05:17 -0600 (CST) Received: from one.mxroute.com (one.mxroute.com [195.201.59.211]) by filter004.mxroute.com (Postfix) with ESMTPS id 5E9AD3EAD7 for ; Sun, 1 Dec 2019 15:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SXnPeI0QvPXtk/i0HzB3mbSNzwABMR0GaBZiQrH+cxI=; b=tHPDQ5X0DTNVOWYtfKEEaHRmMs uQq0w9zIeakZVCgOV9HK1KFFobD9TF9nNim4ZBhP7mzSCeQIrZRY2PAsS2Jy3oHloDI1uuD4LBeBe pLyzoRPyX3zVUW3+F6CeCfAmKytWA5rwpyRGrS0vVjay0SVK8RwhYA2Cmdprd10ib4mwLii/f0Umd QOXlDVajo3ZuulyQduhe5H//Mf5BIeCrMmkzD4ZVtJWmpck9EIJHX9MeBfzndzaxkKTsQDoEPamii 4WDQdS9+LFPTJyofZmxcUSkIhi5cEFQRKzPfcH7DGurUalMCo64m1IIT10SaTet6ADZF66fsFs76f 8QQ1WQQQ==; From: Stephen Finucane To: patchwork@lists.ozlabs.org Subject: [PATCH 1/2] settings: Add configuration for sqlite DB backend Date: Sun, 1 Dec 2019 15:05:05 +0000 Message-Id: <20191201150506.91389-1-stephen@that.guru> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Signed-off-by: Stephen Finucane --- patchwork/settings/dev.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index e110e745..c5afe0d5 100644 --- a/patchwork/settings/dev.py +++ b/patchwork/settings/dev.py @@ -51,6 +51,13 @@ DATABASES = { if os.getenv('PW_TEST_DB_TYPE', None) == 'postgres': DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2' DATABASES['default']['HOST'] = os.getenv('PW_TEST_DB_HOST', '') +elif os.getenv('PW_TEST_DB_TYPE', None) == 'sqlite': + DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' + DATABASES['default']['NAME'] = '/dev/shm/patchwork.test.db.sqlite3' + del DATABASES['default']['HOST'] + del DATABASES['default']['PORT'] + del DATABASES['default']['USER'] + del DATABASES['default']['PASSWORD'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'