aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/urls.py
diff options
context:
space:
mode:
authorTom Christie2012-09-04 12:02:05 +0100
committerTom Christie2012-09-04 12:02:05 +0100
commit8457c871963264c9f62552f30307e98221a1c25d (patch)
tree2048cbfc334aa5fca0d5c8d88fd20e50de667e41 /djangorestframework/urls.py
parent29dfbabaf54d75801b404e253a2d7574fa415564 (diff)
downloaddjango-rest-framework-8457c871963264c9f62552f30307e98221a1c25d.tar.bz2
Bits of cleanup
Diffstat (limited to 'djangorestframework/urls.py')
-rw-r--r--djangorestframework/urls.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/djangorestframework/urls.py b/djangorestframework/urls.py
index 3fa813ea..e446c396 100644
--- a/djangorestframework/urls.py
+++ b/djangorestframework/urls.py
@@ -1,3 +1,17 @@
+"""
+Login and logout views for the browseable API.
+
+Add these to your root URLconf if you're using the browseable API and
+your API requires authentication.
+
+The urls must be namespaced as 'djangorestframework', and you should make sure
+your authentication settings include `SessionAuthentication`.
+
+ urlpatterns = patterns('',
+ ...
+ url(r'^auth', include('djangorestframework.urls', namespace='djangorestframework'))
+ )
+"""
from django.conf.urls.defaults import patterns, url