/django-simple-authentication

Simple authentication app (register/login accounts) written in django.

Primary LanguagePython

Simple authentication in Django

Overview

Little side-project written for learning django authentication.

Some things used in project

  • Custom db user model
  • Login, logout redirect pages
  • Login method decorator
  • Redirects to and from login page to previously blocked content
  • Form Models

Screenshots

  1. Main page viewed as anonymous user index page
  2. Register and login views register page login page
  3. Test view (available only for authenticated users) page for authorized users

How to run project

  1. Make sure you have python and django installed.
  2. Download or clone repository
  3. Open cmd in simple_authentication/
  4. Type following code to create database and run migrations:
python manage.py migrate
  1. Type following code to run django server:
python manage.py runserver
  1. Paste url given by django server in your browser and... It's done 😉

Urls