Skip to content

This is a follow up of a previous repository showing how to implement django multi user authentication subclassing django AbstractUser Model.

Notifications You must be signed in to change notification settings

codeOlam/dj-multi-user-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django Logo

About

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.1.1

This app features the following:

-- AbstractUser for custom user authentication

-- Authentication Backend configured to authenticate users, using email and password

-- CreateUser Type Teacher or Student at signup

-- Signup With Email Verification Token

-- Login

-- Very basic profile dashboard

-- simple permission to restrict unauthenticate users and unauthorized access

Technology and Requirements

  1. Django 3.1.1
  2. Python3
  3. Boostrap 4.3.x (for front end)

Installations

  1. installing Python3
  2. installing Django 3.0
  3. installing Virtualenv
  4. installing requirements from requirements.txt. After activating vitualenv run:

(venv)path/to/app/src$ pip install -r requirements.txt

  1. psycopg2

Run App

  1. After cloning this repo, make sure your virtualenv is ativated and change your path to $app_root/.

(venv)path/to/app$

  1. install packages required by running (venv)path/to/app$ pip install -r requirements.txt

  2. 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

  1. The migrate the app (venv)path/to/app/src$ python manage.py migrate

  2. To run the development server (venv)path/to/app/src$ python manage.py runserver

  3. go to your web browser and enter 127.0.0.1:8000

Recommendations

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

Resources

  1. Django 3.x Doc
  2. My Previous Repo

Other Resources

  1. Customizing authentication in Django

About

This is a follow up of a previous repository showing how to implement django multi user authentication subclassing django AbstractUser Model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published