Conjunto d45fcdc en gestor_consulta


Ignorar:
Fecha y hora:
19/09/2017 15:08:57 (hace 7 años)
Autor:
Antonio Araujo <aaraujo@…>
Branches:
master
Children:
38840b5
Parents:
e81243a
Mensaje:

Modificación en el archivo settings.py para utilizar JWT

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • gestor_consulta/settings.py

    r2353277 rd45fcdc  
    160160REST_FRAMEWORK = {
    161161    'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
     162    # taken from http://getblimp.github.io/django-rest-framework-jwt/ to test JWT
     163    'DEFAULT_AUTHENTICATION_CLASSES': (
     164        'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
     165        'rest_framework.authentication.SessionAuthentication',
     166        'rest_framework.authentication.BasicAuthentication',
     167    ),
    162168}
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.