django-rest-framework/djangorestframework/urls.py

10 lines
300 B
Python
Raw Normal View History

2012-02-25 22:45:17 +04:00
from django.conf.urls.defaults import patterns, url
2011-05-04 12:21:17 +04:00
2012-02-25 22:45:17 +04:00
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'),
2011-05-04 12:21:17 +04:00
)