This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
Go to file
2020-02-29 23:03:58 -06:00
.circleci Removes Django 11 2020-02-29 22:06:53 -06:00
demo Removes six 2020-02-29 20:30:21 -06:00
dj_rest_auth Fixes broken tests 2020-02-29 22:47:06 -06:00
docs Updates names 2020-02-29 18:10:25 -06:00
.gitignore Update .gitignore from GH 2018-08-21 21:18:41 -07:00
AUTHORS Renames project to dj-rest-auth 2020-02-29 17:59:38 -06:00
dev-requirements.txt Adds django-allauth to dev-requirements.txt 2018-10-27 02:14:25 -03:00
LICENSE Adds circle CI 2020-02-29 18:58:59 -06:00
MANIFEST.in Renames project to dj-rest-auth 2020-02-29 17:59:38 -06:00
README.md Fixes README 2020-02-29 23:03:58 -06:00
runtests.py DRY's up config 2020-02-29 22:02:36 -06:00
setup.cfg Add wheel & metdata config 2018-08-21 21:29:15 -07:00
setup.py Adds more tests coverage 2020-02-29 21:34:24 -06:00

Dj-Rest-Auth

Drop-in API endpoints for authentication in Django Rest Framework.

Requirements

  • Django 2 or 3.
  • Python 3

Setup

Install package

pip install dj-rest-auth

Add dj_rest_auth app to INSTALLED_APPS in your django settings.py:

INSTALLED_APPS = (
    ...,
    'rest_framework',
    'rest_framework.authtoken',
    ...,
    'dj_rest_auth'
)

Add URL patterns

urlpatterns = [
    url(r'^dj-rest-auth/', include('dj_rest_auth.urls'))
]