django-rest-framework-auth¶
django-rest-framework-auth is a authentication provider for django and rest_framework.
With very simple instructions, you can add your authentication API.
Quickstart¶
Just install it, including urls and see APIs from your browsable API.
$ pip install django-rest-framework-auth
$ django-admin startproject proj
$ vi proj/proj/settings.py
# settings.py
# ...
INSTALLED_APPS = (
# ...
'rest_auth',
'rest_framework',
# ...
)
# urls.py
# ...
urlpatterns += [
url(r'^auth/', include(('rest_auth.urls'))),
]
$ python manage.py runserver
see API lists! http://localhost:8000/auth/api-root/