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

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,
name='thaliapp-login'),
url(r'^app', views.app,
......
......@@ -52,6 +52,7 @@ INSTALLED_APPS = [
'tinymce',
'django_template_check', # This is only necessary in development
'rest_framework',
'rest_framework.authtoken',
'compressor',
'corsheaders',
# Our apps
......
Markdown is supported
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