5π
You want to look at Customizing authentication in Django. You can have as many different ways to authenticate as you wish. Part of the information stored in the Session record is which authentication backend was used successfully. Itβs slightly involved, but they give you all of the control necessary to do pretty much whatever you like.
I used this on a system a number of years ago where the primary user/password information was coming from an external subscription management server. If the user/pass did not work on the normal User-auth system, I checked a different system. If it succeeded, I created a new User on the fly.
-3π
Django has a complete built in admin login built in with interface also. check https://docs.djangoproject.com/en/dev/ref/contrib/admin/
- [Answered ]-Pythonic method for Django loop
- [Answered ]-ModelForm view not saving or
- [Answered ]-Full URL in Django REST framework serializer