django-rest-framework/djangorestframework/urls.py

7 lines
198 B
Python
Raw Normal View History

2011-05-04 12:21:17 +04:00
from django.conf.urls.defaults import patterns
urlpatterns = patterns('djangorestframework.utils.staticviews',
(r'^accounts/login/$', 'api_login'),
(r'^accounts/logout/$', 'api_logout'),
)