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
