summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2013-10-01 18:39:16 +0100
committerJeremy Kerr <jk@ozlabs.org>2013-10-04 14:15:14 +0800
commita3b7a8023d1493cb57a303dd8420960b230670aa (patch)
treedb9a73cbe39d678d6dbce93bef042efb6cc85710
parent4e7b62c51b958acad9d87b435571a22113a43d35 (diff)
downloadpatchwork-a3b7a8023d1493cb57a303dd8420960b230670aa.tar.bz2
patchwork-a3b7a8023d1493cb57a303dd8420960b230670aa.tar.xz
docs: update MySQL documentation bits
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 <f.fainelli@gmail.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--docs/INSTALL14
1 files changed, 13 insertions, 1 deletions
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 '<password>';
> CREATE USER 'nobody'@'localhost' IDENTIFIED BY '<password>';
+ 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: