A Django project that use a custom user model.
Before you use this, you should probably read the documentation about Customizing authentication in Django.
-
Clone this repository
git clone https://github.com/dnwandana/custom-user-model.git
-
Move to the cloned repo directory
cd custom-user-model
-
Activate your virtualenv
-
Install the required dependencies
pip install -r requirements.txt
-
Move the directory to
custom_user_model
, runmakemigrations
andmigrate
commandcd custom_user_model python manage.py makemigrations python manage.py migrate
-
Create a
superuser
Run the command below, and you'll be prompted an email, username, first & last name, and also password.
python manage.py createsuperuser
-
Run the app and check the admin site
python manage.py runserver