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:
- Twitter: https://twitter.com/pydanny
- LinkedIn: https://www.linkedin.com/in/danielfeldroy/
- Twitch: https://www.twitch.tv/danielfeldroy
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:
- Buy my books at https://feldroy.com!
- Sponsor me on github: https://github.com/sponsors/pydanny
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]')