Skip to content

Files

Latest commit

1f87632 · Dec 2, 2023

History

History
98 lines (66 loc) · 1.94 KB

README.md

File metadata and controls

98 lines (66 loc) · 1.94 KB

Simple Django Login and Registration

An example of Django project with basic user functionality.

Screenshots

Log In Create an account Authorized page
Password reset verifying page Password change

Functionality

  • Log in
    • via username & password
    • via email & password
    • via email or username & password
  • Create an account
  • Log out
  • Profile activation via email
  • Reset password

Installing

Clone the project

git clone https://github.com/Ho011/django-login-and-register.git

Install dependencies & activate venv

unix / mac

python3 -m pip install --user virtualenv

windows

py -m pip install --user virtualenv

create a virtual environment

unix / mac

python3 -m venv env

windows

py -m venv env

And tell pip to install all of the packages in this file using the -r flag:

unix / mac

python3 -m pip install -r requirements.txt

windows

py -m pip install -r requirements.txt

Configure the settings (connection to the database, connection to an SMTP server, and other)

  1. Edit core/settings.py if you want to develop the project.

  2. Create .env file in core/ and add your environment variable

  3. Apply migrations

The following are required environment variables:

  1. SERVER_EMAIL
  2. DEFAULT_FROM_EMAIL
  3. EMAIL_HOST_PASSWORD
  4. EMAIL_HOST_USER
  5. EMAIL_HOST
  6. SECRET_KEY

A development server

Just run this command:

python manage.py runserver