Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Login and logout views for the browsable API.
Add these to your root URLconf if you're using the browsable API and your API requires authentication.
The urls must be namespaced as 'rest_framework', and you should make sure your authentication settings include `SessionAuthentication`.
urlpatterns = patterns('', ... url(r'^auth', include('rest_framework.urls', namespace='rest_framework')) ) """
url(r'^login/$', 'login', template_name, name='login'), url(r'^logout/$', 'logout', template_name, name='logout'), ) |