Skip to content

amssdias/login-system

Repository files navigation

Python Badge Python Badge

Login System Template

A basic template of a login system so you can use the template in any web app with just minimal changes to quickly build the web apps. Nowadays every website requires their customers to create accounts therefore this template will be very useful.

Built with

Django Badge

🔨 Getting started

Pre requisites

Installation

Clone the project

git clone https://github.com/amssdias/login-system
cd login-system

Configure settings(email)

Fill up the ".env_sample_file" file, so users can receive activation links and to reset passwords. Rename it as well to ".env".

Install dependencies & activate virtualenv

  1. Pipenv (make sure you have Python installed):

     pip install pipenv  # For Windows
     brew install pipenv # For MacOs
     sudo apt install pipenv # For Debian Buster+
     sudo dnf install pipenv # For Fedora
  2. Install packages:

    pipenv install # will create a virtual environment with all the modules needed
  3. Activate virtualenv and apply migrations:

    pipenv shell # To activate the virtual environment
    
    python manage.py makemigrations
    python manage.py migrate

If any doubts here's a link to some more explanations: Pipenv

🔎 Usage

pipenv shell
python manage.py runserver

Paste this link on your browser: http://127.0.0.1:8000/auth/login

Features

  • Log in
    • Via username and password
  • Create an account
  • Profile activation email
  • Reset password
  • Resend an activation link
  • Change password