Commit 1dedaec8 authored by AuckeBos's avatar AuckeBos Committed by Wietse Kuipers
Browse files

Added Django REST framework login token

parent 52866b0c
from django.conf.urls import url
from rest_framework.authtoken import views as rfviews
from . import views
app_name = "thaliapp"
urlpatterns = [
url(r'^token-auth/', rfviews.obtain_auth_token),
url(r'^login', views.login,
......@@ -52,6 +52,7 @@ INSTALLED_APPS = [
'django_template_check', # This is only necessary in development
# Our apps
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment