Corrections
[auf_references_client.git] / auf_references_client / settings.py
CommitLineData
51880961
CR
1# Django settings for app project.
2ROA_MODELS = True # set to False if you'd like to develop/test locally
3
4ROA_FORMAT = 'django'
5SERIALIZATION_MODULES = {
6 'django' : 'auf_references_client.serializers',
7}
8ROA_HEADERS = {
9 'Content-Type': 'application/x-www-form-urlencoded',
10}
11ROA_DJANGO_ERRORS = True # useful to ease debugging if you use test server
12
13
14# URLs
51880961 15ROA_BASE_URL = "https://references.auf.org/roa/"
e50e7852
CR
16## Pour tests
17ROA_BASE_URL = 'http://localhost:8001/roa/'
18ROA_URL_OVERRIDES_LIST = {
8b8b0996
CR
19 'auf_references_modeles.region': ROA_BASE_URL + 'region/',
20 'auf_references_modeles.pays': ROA_BASE_URL + 'pays/',
21 'auf_references_modeles.aufuser': ROA_BASE_URL + 'user/',
22 'auf_references_modeles.etablissement': ROA_BASE_URL + 'etablissement/',
e50e7852 23 'auf_references_modeles.etablissementhistory': ROA_BASE_URL + 'etablissement/histo/',
8b8b0996
CR
24 'auf_references_modeles.responsable': ROA_BASE_URL + 'responsable/',
25 'auf_references_modeles.implantation': ROA_BASE_URL + 'implantation/',
26 'auf_references_modeles.typeimplantation': ROA_BASE_URL + 'typeimplantation/',
27 'auf_references_modeles.employeresponsable': ROA_BASE_URL + 'employeresponsable/',
e50e7852 28}
51880961
CR
29
30## Pour la nouvelle app d'auth
31#AUTHENTICATION_BACKENDS = (
32# 'auf_references_client.backends.CascadeBackend',
33#)
34#AUTH_PASSWORD_REQUIRED=True
35
36## ?
37#ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}