Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support switch Database by specified parameter not by router #372

Closed
chrisjiayoulin opened this issue Jun 10, 2022 · 1 comment
Closed

Comments

@chrisjiayoulin
Copy link

We have a requirement to store different user information in different databases according to the domain name, and get data from the specified database when calling get_social_auth_for_user .

Although Django supports router to switch databases, it cannot satisfy us to switch databases based on current environment variables .

Is it possible for social_django to switch databases not through the router but by specifying a parameter?

Thanks You!

@nijel
Copy link
Member

nijel commented Mar 14, 2025

The right place to do this is in Django router, we're not going to reimplement that.

@nijel nijel closed this as completed Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants