diff options
| author | Tom Christie | 2012-02-25 18:45:17 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-02-25 18:45:17 +0000 | 
| commit | 1cde31c86d9423e9b7a7409c2ef2ba7c0500e47f (patch) | |
| tree | ea24bce0f24507aa43f408776ccf7324f204256d /djangorestframework/urls.py | |
| parent | 5fd4c639d7c64572dd07dc31dcd627bed9469b05 (diff) | |
| download | django-rest-framework-1cde31c86d9423e9b7a7409c2ef2ba7c0500e47f.tar.bz2 | |
Massive merge
Diffstat (limited to 'djangorestframework/urls.py')
| -rw-r--r-- | djangorestframework/urls.py | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/djangorestframework/urls.py b/djangorestframework/urls.py index 5c797bcd..3fa813ea 100644 --- a/djangorestframework/urls.py +++ b/djangorestframework/urls.py @@ -1,6 +1,9 @@ -from django.conf.urls.defaults import patterns +from django.conf.urls.defaults import patterns, url -urlpatterns = patterns('djangorestframework.utils.staticviews', -    (r'^accounts/login/$', 'api_login'), -    (r'^accounts/logout/$', 'api_logout'), + +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'),  ) | 
