--- a/server/authentication/urls.py Fri Apr 03 10:44:34 2015 +0200
+++ b/server/authentication/urls.py Fri Apr 03 15:01:41 2015 +0200
@@ -1,11 +1,10 @@
from django.conf.urls import patterns, url
from rest_framework.authtoken import views
-from authentication.views import User, AuthView
+from authentication.views import User, ObtainAuthToken
urlpatterns = patterns('',
url(r'^user', User.as_view()),
- url(r'^auth', AuthView.as_view(), name='auth-view'),
- url(r'^api-token-auth', views.obtain_auth_token)
+ url(r'^api-token-auth', ObtainAuthToken.as_view())
)