Django Rest Accounts is a Django reusable app built with Django Rest Framework for easier account management for REST app.
MIT License
Django Rest Accounts is a Django app built on Django Rest Framework for easier account management for REST API.
accounts
to your INSTALLED_APPS like this::INSTALLED_APPS = [
...,
"rest_framework",
"rest_framework.authtoken",
"accounts",
]
path('accounts/', include('accounts.urls')),
AUTH_USER_MODEL = "accounts.User"
Run python manage.py migrate
to create authentication models.
Start the development server and visit http://127.0.0.1:8000
URL Configuration
URLConf | |
---|---|
LOGIN | /login/ |
REGISTER | /register/ |
LOGOUT | /logout/ |