diff options
| author | Tom Christie | 2012-09-20 13:19:43 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-20 13:19:43 +0100 |
| commit | 87dae4d8549c02fa9a57adb3bb876d249dae1f79 (patch) | |
| tree | f3cf967490b79045ddf2be03e1e2ecebb23f58eb /djangorestframework/urls.py | |
| parent | 4b691c402707775c3048a90531024f3bc5be6f91 (diff) | |
| download | django-rest-framework-87dae4d8549c02fa9a57adb3bb876d249dae1f79.tar.bz2 | |
Remove old 'djangorestframework directories
Diffstat (limited to 'djangorestframework/urls.py')
| -rw-r--r-- | djangorestframework/urls.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/djangorestframework/urls.py b/djangorestframework/urls.py deleted file mode 100644 index e446c396..00000000 --- a/djangorestframework/urls.py +++ /dev/null @@ -1,23 +0,0 @@ -""" -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 - - -template_name = {'template_name': 'djangorestframework/login.html'} - -urlpatterns = patterns('django.contrib.auth.views', - url(r'^login/$', 'login', template_name, name='login'), - url(r'^logout/$', 'logout', template_name, name='logout'), -) |
