Repository URL to install this package:
|
Version:
3.6.4 ▾
|
ËÞÁV& ã @ s d Z d d l m Z d d l m Z d d l m Z d d i Z d Z e d e j e d d
e d e j
e d d g Z d
S)a½
Login and logout views for the browsable API.
Add these to your root URLconf if you're using the browsable API and
your API requires authentication:
urlpatterns = [
...
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
]
In Django versions older than 1.9, the urls must be namespaced as 'rest_framework',
and you should make sure your authentication settings include `SessionAuthentication`.
é )Úunicode_literals)Úurl)ÚviewsÚ
template_namezrest_framework/login.htmlÚrest_frameworkz^login/$ÚnameÚloginz ^logout/$ÚlogoutN)Ú__doc__Ú
__future__r Údjango.conf.urlsr Údjango.contrib.authr r Úapp_namer r Úurlpatterns© r r úR/Users/carlton/Documents/Django-Stack/django-rest-framework/rest_framework/urls.pyÚ<module> s