Little side-project written for learning django authentication.
- Custom db user model
- Login, logout redirect pages
- Login method decorator
- Redirects to and from login page to previously blocked content
- Form Models
- Main page viewed as anonymous user
- Register and login views
- Test view (available only for authenticated users)
- Make sure you have python and django installed.
- Download or clone repository
- Open cmd in simple_authentication/
- Type following code to create database and run migrations:
python manage.py migrate
- Type following code to run django server:
python manage.py runserver
- Paste url given by django server in your browser and... It's done 😉