forked from fgaudin/aemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
84 lines (52 loc) · 1.88 KB
/
INSTALL
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Python
------
Install python-2.6 with your package manager
Virtualenv
----------
First install it :
$ easy_install virtualenv
And create your virtualenv :
$ mkdir ~/venv
$ virtualenv --no-site-packages ~/venv/django1.2
$ source ~/venv/django1.2/bin/activate
Django and other stuff
------
Install with your package manager :
libjpeg libjpeg-dev libfreetype6 libfreetype6-dev
then do
easy_install django psycopg2 django-extensions werkzeug south reportlab pypdf html5lib pisa pil
For django-registration :
download source from https://bitbucket.org/ubernostrum/django-registration/src
$ source ~/venv/django1.2/bin/activate
$ python setup.py install # in registration directory
For csv export :
download source from https://github.com/jdunck/python-unicodecsv
$ source ~/venv/django1.2/bin/activate
$ python setup.py install # in unicodecsv directory
Handling file upload
--------------------
File upload is managed by django (set FILE_UPLOAD_DIR in settings)
However, files serving is done by apache using to apache mod_xsendfile to deals
with access control.
First install apache2-prefork-dev with you package manager
then download mod_xsendfile.c from https://tn123.org/mod_xsendfile/
compile and install it :
$ sudo apxs2 -cia mod_xsendfile.c
also add or uncomment in /etc/apache2/envvars
. /etc/default/locale
before export LANG statement to support filenames with non ascii characters
and restart apache
Aemanager
---------
Clone the git repository :
$ git clone https://github.com/fgaudin/aemanager.git
or fork it on github and clone your own repository
In aemanager directory, if it's your first install :
$ python manage.py syncdb --noinput
$ python manage.py migrate
$ python manage.py createsuperuser
For an update just do :
$ python manage.py migrate
Then to run it, do not forget to activate your virtualenv then do :
$ python manage.py runserver_plus
Then go to http://localhost:8000