Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.29 KB

index.rst

File metadata and controls

60 lines (42 loc) · 1.29 KB

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_auth.users',
    'rest_framework',
    # ...
)

# urls.py
# ...
urlpatterns += [
    url(r'^auth/', include(('rest_auth.urls'))),
    url(r'^auth/user/', include(('rest_auth.users.urls'))),
]
$ python manage.py runserver

see API lists! http://localhost:8000/auth/api-root/

Contents

Installation <install> API References <api/index> Configurations <configuration> Tricks & tips <tips>