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