mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
10 lines
300 B
Python
10 lines
300 B
Python
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'),
|
|
)
|