Welcome to Django-Backend-Auth-Api’s documentation!¶
###Setup your project 1. Create you django api project in my case my project name is backend
Your project seems like this:
- backend/
__init__.py settings.py urls.py wsgi.py
manage.py requirements.txt
Install the package in command line on your project directory like this:
cd backend/ after activate your virtual environment pip install django-backend-auth-api == 0.2
Add “authapi” to your INSTALLED_APPS setting like this:
- INSTALLED_APPS = [
… ‘authapi’,
]
Include the authapi URLconf in your project urls.py like this:
path(‘authapi/’, include(‘authapi.urls’)),
Run python manage.py migrate to create the authapi models.
Visit http://127.0.0.1:8000/authapi/ to see all urls related to a backend authentication.