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

Loose coupling to contrib.sites application #90

Open
floledermann opened this issue Jun 27, 2011 · 1 comment
Open

Loose coupling to contrib.sites application #90

floledermann opened this issue Jun 27, 2011 · 1 comment

Comments

@floledermann
Copy link

django-socialregistration is currently hard-wired to the sites application. This means it cannot be used in scenarios where the sites app is not installed, or where other methods for assigning authenticated users to sites are used.

@flashingpumpkin
Copy link
Owner

This is true. I've made it that way because the auth methods require to know where to redirect back.

A solution would be to turn it into some kind of internal Site model, that has a domain field which in turn can take a default value from a function, which can be defined in the settings - similar to upload paths for files. And if not, it's using Site.objects.get_current().domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants