33 lines
884 B
Plaintext
33 lines
884 B
Plaintext
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>
|