Django Authenticate Backend Multiple Databases

前端 未结 2 593
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 08:42

I am rewriting a legacy application that has a database for each customer. Each customer has its own authentication and user set. Thus, I\'ll need a custom authentication ba

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 09:32

    Its likely you could use the Django database routers to control this. If you know which user hits which database you could simply define that based on logic for the user model.

提交回复
热议问题