/django-rest-accounts

Django Rest Accounts is a Django reusable app built with Django Rest Framework for easier account management for REST app.

Primary LanguagePythonMIT LicenseMIT

Travis CI Hits

Django Rest Accounts

Django Rest Accounts is a Django app built on Django Rest Framework for easier account management for REST API.

Quick Start

  • Add accounts to your INSTALLED_APPS like this::
INSTALLED_APPS = [
    ...,
    "rest_framework",
    "rest_framework.authtoken",
    "accounts",
]
  • Include the accounts URLconf in your project urls.py like this::
path('accounts/', include('accounts.urls')),
  • In your settings.py set the
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/

Project made and maintained by Kumar Aditya