From patchwork Tue Oct 1 17:39:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 279643 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 8FFB72C0450 for ; Wed, 2 Oct 2013 12:12:33 +1000 (EST) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by ozlabs.org (Postfix) with ESMTP id 10C592C00C5 for ; Wed, 2 Oct 2013 03:46:19 +1000 (EST) Received: from [10.9.208.57] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Tue, 01 Oct 2013 10:35:54 -0700 X-Server-Uuid: 06151B78-6688-425E-9DE2-57CB27892261 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Tue, 1 Oct 2013 10:39:54 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.1.438.0; Tue, 1 Oct 2013 10:39:53 -0700 Received: from fainelli-desktop.broadcom.com ( dhcp-lab-brsb-10.bri.broadcom.com [10.178.7.10]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 48AC2246A6; Tue, 1 Oct 2013 10:39:53 -0700 (PDT) From: "Florian Fainelli" To: patchwork@lists.ozlabs.org Subject: [PATCH 1/5] docs: update MySQL documentation bits Date: Tue, 1 Oct 2013 18:39:16 +0100 Message-ID: <1380649160-24319-2-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1380649160-24319-1-git-send-email-f.fainelli@gmail.com> References: <1380649160-24319-1-git-send-email-f.fainelli@gmail.com> MIME-Version: 1.0 X-WSS-ID: 7E55D8700UO12838806-01-01 X-Mailman-Approved-At: Wed, 02 Oct 2013 12:12:00 +1000 Cc: Florian Fainelli , jk@ozlabs.org X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 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" The MySQL documentation bits where missing a few important details for installation setup to succeed like: - having proper python-mysqldb support - overriding the DATABASE_ENGINE to "mysql" for django to succeed in the "syncdb" operation Signed-off-by: Florian Fainelli --- docs/INSTALL | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/INSTALL b/docs/INSTALL index cb71cdd..28f85d5 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -12,7 +12,8 @@ in brackets): * django >= 1.2 * A webserver (apache) * mod_python or flup - * A database server (postgresql) + * A database server (postgresql, mysql) + * relevant python modules for the database server (e.g: python-mysqldb) 1. Database setup @@ -64,6 +65,17 @@ in brackets): > CREATE USER 'www-data'@'localhost' IDENTIFIED BY ''; > CREATE USER 'nobody'@'localhost' IDENTIFIED BY ''; + Once that is done, you need to tell Django about the new Database + settings, using local_settings.py (see below) to override the defaults + in settings.py: + + DATABASE_ENGINE = 'mysql' + DATABASE_NAME = 'patchwork' + DATABASE_USER = 'root' + DATABASE_PASSWORD = 'my_secret_root_password' + DATABSE_HOST = 'localhost' + DATABASE_PORT = '' + 2. Django setup Set up some initial directories in the patchwork base directory: