Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Django custom user

Customize Django's base user model with PostgreSQL.

Custom commands

py manage.py makemigrations apps_users --dry-run --verbosity 3
py manage.py new_secret

Setup / run in your local machine.

  1. Clone repository
git clone https://github.com/mkeithX/django-custom-user.git
  1. Setup and activate virtual environment:
 py -m venv .venv
.venv\scripts\activate
  1. Install required dependecies.
py -m pip install --upgrade -r requirements.txt
  1. Make a copy of the .env.example and make sure to configure variable corretly:
cp .env.example .env
  1. Setup database and apply migration.
py manage.py makemigrations apps_users
py manage.py migrate
  1. Create superuser:
py manage.py createsuperuser
  1. Start development server.
py manage.py runserver
py manage.py makemigrations app_users --dry-run --verbosity 3