[Answered ]-How to have two separate authentication system in django?

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.

πŸ‘€Peter Rowell

-3πŸ‘

Django has a complete built in admin login built in with interface also. check https://docs.djangoproject.com/en/dev/ref/contrib/admin/

πŸ‘€Rohit

Leave a comment