Système d'information du FAI Illyse

Baptiste Jonglez 7fd7f794f0 Add IPAllocationLog migration 4 years ago
coin 7fd7f794f0 Add IPAllocationLog migration 4 years ago
illyse-si-design 85e9f0d4d1 [design] suppression du hover sur le titre 4 years ago
ldapdb 4e599eec15 Remove useless code 5 years ago
.gitignore e2900e4bbc PEP 4 years ago b1ec617f00 Update README with fixture 4 years ago 8efe3fd1fb Add some default values 5 years ago
requirements.txt ce39042ba9 Bump django to 1.6.4 4 years ago

The COIN project

Coin is Illyse's Information System, designed to managed subscribers.

It is written in Django, and makes an heavy use of LDAP (for authentication, and to store configuration information).

It currently only works with python2, because python-ldap is (as of 2013) not compatible with python3.


Get yourself a virtualenv. On Debian, install python-virtualenv. On Archlinux, the package is called python2-virtualenv, and you must replace the virtualenv command with virtualenv2 in the following.

To create the virtualenv (the first time):

virtualenv ~/tmp/venv-illyse

To activate the virtualenv (you need to do this each time you work on the project):

. ~/tmp/venv-illyse/bin/activate

Install dependencies. On Debian, you will probably need the python-dev, python-pip, libldap-dev, libpq-dev and libsasl2-dev packages.

sudo apt-get install python-dev python-pip libldap2-dev libpq-dev libsasl2-dev

Then run:

pip install -r requirements.txt

You should now be able to run python (within the virtualenv, obviously) without error.

The coin/ file is ignore by Git: feel free to override any setting by writing into that file. For example, to override the DEBUG settings:

echo '# -*- coding: utf-8 -*-' > coin/
echo 'DEBUG = TEMPLATE_DEBUG = True' >> coin/

To sync database, the first time run :

python syncdb --migrate

You probably want to import some base data to play with:

python loaddata offers ip_pool offers

Then at each code update :

python migrate

More information

For the rest of the setup (database, LDAP), see