Skip to content

Jamezslim90/multiple-user-types-django

 
 

Repository files navigation

Multiple User Types | Django

Multiple User Types | Django

Video explanation: https://www.youtube.com/watch?v=f0hdXr2MOEA

How to Implement multiple user types with Django in a maintainable way.

Features a brief appearance by Audrey Feldroy, creator of Cookiecutter, https://djangopackages.org, co-author of Two Scoops of Django and Django Crash Course.

You can see me code the whole video, but I freeze up a few minutes in. The content is still good though.

Follow me:

Django Proxy Model docs: https://docs.djangoproject.com/en/3.0/topics/db/models/#proxy-models

I'm also known as "pydanny" and "Daniel Roy Greenfeld". Support my stream and coding efforts:

Sample data

From within the shell_plus environment:

Spy.objects.create(username='daniel', email='[email protected]')
Driver.objects.create(username='audrey', email='[email protected]')    
Driver.objects.create(username='uma', email='[email protected]') 

About

How to do different user models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.0%
  • HTML 25.8%
  • Other 1.2%