Django is a web-framework written in Python and runs the backend for many of the internet's most popular websites. This is a multi-user type auth app, it is built ontop of Django 3.2.8 and Django Rest Framework 3.12.4
This app features the following:
-- BaseUserManager and AbstractUser for custom user authentication
-- Authentication Backend configured to authenticate users, using email and password
-- Allow you to CreateUser Type e.g: Teacher or Student at signup
- Django==3.2.8
- Python3
- djangorestframework==3.12.4
- drf-yasg==1.20.0
- installing Python3
- installing Django 3.x
- installing Django Rest Framework
- installing Virtualenv
- installing requirements from requirements.txt. After activating vitualenv run:
(venv)path/to/app/src$ pip install -r requirements.txt
- psycopg2
- set up an env file with:
SECRET_KEY={your secret key value}
- After cloning this repo, make sure your virtualenv is ativated and change your path to $app root/.
(venv)path/to/app$
-
install packages required by running
(venv)path/to/app$ pip install -r requirements.txt
-
change director to src/ make sure you are in the same directory where manage.py is then run
(venv)path/to/app/src$ python manage.py makemigrations
-
The migrate the app
(venv)path/to/app/src$ python manage.py migrate
-
To run the development server
(venv)path/to/app/src$ python manage.py runserver
-
To open swagger docs go to your web browser and enter 127.0.0.1:8000/docs/ or 127.0.0.1:8000/redoc/
This App is not designed to be used full in deployement. You are free to make any adjustments to it and include in you project