Commit 031ef035 authored by Thom Wiggers's avatar Thom Wiggers 📐

Merge branch 'api-login-post-json' into 'master'

Api login handles json post requests

See merge request !377
parents 9c035c13 1dedaec8
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