X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=docs%2FINSTALL;h=28f85d55e834874896359f66a26b7a59b210266e;hb=5c2626726c895ccc62a5d58b76224d6cd0ac0e3f;hp=c63d6f707e08690c38539a15247bd5a09ebb1df0;hpb=75d8cf966034e673afe0077ba393d8b2eb3e9b93;p=patchwork diff --git a/docs/INSTALL b/docs/INSTALL index c63d6f7..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: @@ -81,18 +93,6 @@ in brackets): cd ../python ln -s ../packages/django/django ./django - We also use some Javascript libraries: - - cd lib/packages - mkdir jquery - cd jquery - wget http://jqueryjs.googlecode.com/files/jquery-1.3.min.js - wget http://www.isocra.com/articles/jquery.tablednd_0_5.js.zip - unzip jquery.tablednd_0_5.js.zip jquery.tablednd_0_5.js - cd ../../../htdocs/js/ - ln -s ../../lib/packages/jquery/jquery-1.3.min.js ./ - ln -s ../../lib/packages/jquery/jquery.tablednd_0_5.js ./ - The settings.py file contains default settings for patchwork, you'll need to configure settings for your own setup.