Create a new project by typing command django-admin startproject user_model_testuser_model_test is just a project you can give it any other name you like.

Create App

  • Go inside root directory and in terminal django-admin startapp custom_user this command creates a new app for the project.
  • In project settings.py file installed app section register newly created app.
INSTALLED_APPS = [
	'...',
	'custom_user.apps.CustomUserConfig',
]

In settings.py specify database connection.

#Django Framework #Python #django #Learn Python #web development

Django Creating Custom User Model with Custom Authentication Backend
2.00 GEEK