Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Alexmhack/Django-Custom-User-Model

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Custom-User-Model

Customizing authentication in Django by creating a custom user model

  1. Create virtualenv

    pipenv install django 	<- install django using pipenv
    pipenv shell	<- activate virtualenv
    
  2. Start Django project

    django-admin startproject custom
    python manage.py startapp accounts
    

    Add 'accounts' in settings.py INSTALLED_APPS

  3. Creating custom model in accounts/models.py and registering the model in accounts/admins.py. Checkout the code from the repo.

  4. Running the makemigrations and migrate commands

    python manage.py makemigrations
    python manage.py migrate
    
  5. Creating super user

    python manage.py createsuperuser
    

About

Customizing authentication in Django by creating a custom user model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.