Polycopiés numériques (Dauphine/UNPIdF)
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.
Go to file
Thomas NOËL e45296a593 config et scripts un peu plus compatibles FHS
codes dans /opt/polynum
config dans /etc/opt/polynum
donnees dans /var/opt/polynum
2012-07-19 12:49:20 +02:00
bin config et scripts un peu plus compatibles FHS 2012-07-19 12:49:20 +02:00
debian raccourci "make deb" pour faire le .deb 2012-07-18 18:10:39 +02:00
help/fr config et scripts un peu plus compatibles FHS 2012-07-19 12:49:20 +02:00
polynum associe directement les utilisateurs aux entités et aux rôles, sans utiliser de groupes 2012-07-19 00:24:32 +02:00
.gitignore add local_settings.py to .gitignore 2012-07-17 20:39:05 +02:00
.gitmodules ajoute un plugin de sélection de couleur à l'éditeur, rend la suppression du formatage fonctionelle aussi sur la coloration 2012-07-11 12:34:47 +02:00
Makefile config et scripts un peu plus compatibles FHS 2012-07-19 12:49:20 +02:00
README démarre une section sur l'installation dans le fichier README 2012-06-29 18:25:22 +02:00
local_settings.py.example config et scripts un peu plus compatibles FHS 2012-07-19 12:49:20 +02:00
manage.py Begin Django application 2012-04-24 18:52:01 +02:00
requirements ajoute django-debug-toolbar aux requirements 2012-07-18 16:27:10 +02:00
setup.py ajoute pyscopg2 comme prérequis 2012-07-06 11:36:03 +02:00

README

Polycopiés numériques, projet UPD+UNPIdF

Installation
------------

With 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

Indexes
-------

Some queries need indexes to be performant, do not forget to install them.

With SQLite::

    python manage.py sqlindexes | sqlite3 polynum.db

With PostgreSQL:

    python manage.py sqlindexes | psql <db_name>