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