Oublis
[auf_references_client.git] / auf_references_client / settings.py
1 import os
2
3 # Pages d'erreur
4 REFERENCES_TEMPLATE_DIRS = [
5 os.path.dirname(__file__),
6 ]
7
8 # ROA
9 ROA_MODELS = True # set to False if you'd like to develop/test locally
10
11 ROA_FORMAT = 'django'
12 SERIALIZATION_MODULES = {
13 'django' : 'auf_references_client.serializers',
14 }
15 ROA_HEADERS = {
16 'Content-Type': 'application/x-www-form-urlencoded',
17 }
18 ROA_DJANGO_ERRORS = True # useful to ease debugging if you use test server
19
20
21 ROA_BASE_URL = "http://references.auf.org/roa/"
22
23 ROA_URL_OVERRIDES_LIST = {
24 'auf_references_modeles.region': ROA_BASE_URL + 'region/',
25 'auf_references_modeles.pays': ROA_BASE_URL + 'pays/',
26 'auf_references_modeles.personne': ROA_BASE_URL + 'personne/',
27 'auf_references_modeles.groupe': ROA_BASE_URL + 'groupe/',
28 'auf_references_modeles.groupespersonne': ROA_BASE_URL + 'groupespersonne/',
29 'auf_references_modeles.utilisateur': ROA_BASE_URL + 'utilisateur/',
30 'auf_references_modeles.adresse': ROA_BASE_URL + 'adresse/',
31 'auf_references_modeles.etablissement': ROA_BASE_URL + 'etablissement/',
32 'auf_references_modeles.etablissementhistory': ROA_BASE_URL + 'etablissement/histo/',
33 'auf_references_modeles.responsableetablissement': ROA_BASE_URL + 'etablissement/responsable/',
34 'auf_references_modeles.implantation': ROA_BASE_URL + 'implantation/',
35 'auf_references_modeles.responsableimplantation': ROA_BASE_URL + 'implantation/responsable/',
36 'auf_references_modeles.typeimplantation': ROA_BASE_URL + 'typeimplantation/',
37 'auf_references_modeles.employeresponsable': ROA_BASE_URL + 'employeresponsable/',
38 }
39
40 USERS_AS_STAFF = False