aboutsummaryrefslogtreecommitdiffstats
path: root/DEPLOYMENT.md
blob: 774855f62fccfb9e2a089f2d0d629bc4b375c7eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
django_skaschool deployment
===========================

Installation Notes
------------------
django 1.6:
requires python >= 2.6
requires mod_wsgi
requires mysql >= 5.0.3
requires MySQLdb >= 1.2.1p2 (pip mysql-python)

mysql-python:
requires mysql_config (libmysqlclient-dev)
requires Python.h (gcc build)

mod_wsgi:
daemon mode requires apache 2.x


MySQL database
--------------
database backend settings: `PROJECT_ROOT/settings.py'
  * NAME, USER, PASSWORD
create database table manually:
  mysql> CREATE DATABASE <NAME> CHARACTER SET utf8;
then syncdb using django manage.py:
  $ python manage.py syncdb
load data if needed:
  $ python manage.py loaddata <data.json>


MEDIA_ROOT:
set write permission for MEDIA_ROOT directory (upload files)


Apache2
-------
Requires version >= 2.2 (user authentication)
Configuration file: APACHE2_skaschool.conf