
from django.urls import path, include
from . import views

from rest_framework.authtoken import views as views_authtoken
from django.contrib.auth.models import User
from django.contrib.auth.views import LoginView


app_name = 'authentication'

urlpatterns = [

    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),

    # Mecanismo para que los clientes obtengan un token con el nombre de usuario y la contraseña
    #path('api-token-auth/', views_authtoken.obtain_auth_token),
    # we include login URLs for the browsable API.

    path('token-auth/', views.CustomAuthToken.as_view()),

    path('testauth', views.TestAuthView, name='testauth'),
    path('log_in', LoginView.as_view(template_name='login.html'))

]
