- url(r'^oauth/request_token/$', csrf_exempt(views.OAuth1RequestTokenView.as_view())),
- url(r'^oauth/authorize/$', views.oauth_user_auth, name='oauth_user_auth'),
- url(r'^oauth/access_token/$', csrf_exempt(views.OAuth1AccessTokenView.as_view())),
+ path('oauth/request_token/', csrf_exempt(views.OAuth1RequestTokenView.as_view())),
+ path('oauth/authorize/', views.oauth_user_auth, name='oauth_user_auth'),
+ path('oauth/access_token/', csrf_exempt(views.OAuth1AccessTokenView.as_view())),
+ path('login/', csrf_exempt(views.LoginView.as_view())),