Single sign on multiple django project -
in our business case there 3 projects follows:
- projecta
- projectb
- projectc
projecta contains user registration, if user registed projecta can access projects(projectb, projectc, etc.) except admin login. each project having different admin site login.
in scenario used django multiple database concept routers:- http://dustinfarris.com/2012/2/sharing-django-users-and-sessions-across-projects/
after user , session routed corresponding projects(i can able projecta users in other projects , create record user.)
the problem is while accessing admin use default(local database based on router). while updating record throws following exception:
user matching query not exist (it checks projecta user in local database)
my question is there possibility specify database(in router) particular action in admin? (when login, display list,etc. admin needs use default db , while update records related projecta user means need access router db) please advise on this, thanks.
Comments
Post a Comment