This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
polynum/README

34 lines
934 B
Plaintext

Polycopiés numériques, projet UPD+UNPIdF
Installation
------------
Avec PostgreSQL:
$ createdb polynum
$ echo "DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'polynum' }}" >local_settings.py
Configure the following keys in your local_settings.py:
CAS_SERVER_URL - the CAS server URL
LDAP_URL - the LDAP server URL
LDAP_BIND_DN - the DN to authenticate to the LDAP server
LDAP_BIND_PASSWORD - the password
LDAP_USER_QUERY - the query to retrieve user, use %s as a placeholder for the CAS username
LDAP_BASE - the base DN for the query
$ ./manage.py syncdb
Index
-----
Certaines requêtes nécessitent des index pour êtres performantes, n'oubliez pas
des créer à l'aide des commandes suivantes.
Avec SQLite::
python manage.py sqlindexes | sqlite3 polynum.db
Avec PostgreSQL:
python manage.py sqlindexes | psql <db_name>