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

Renaming social url namespace #399

Closed
shoooe opened this issue Sep 25, 2014 · 2 comments
Closed

Renaming social url namespace #399

shoooe opened this issue Sep 25, 2014 · 2 comments

Comments

@shoooe
Copy link

shoooe commented Sep 25, 2014

I'm trying to rename the social url namespace.

A nested app has the following configurations:

urlpatterns = patterns('',
    ...
    url(r'', include('social.apps.django_app.urls'))
)

and the main application imports the nested one as:

url(r'^nested_app/', include('project.apps.nested_app.urls', namespace = 'nested_app'))

The links in the html templates are in the form:

{% url 'nested_app:begin' 'google-oauth2' %}

And they start the process correctly, but when it's time to "complete" I get:

u'social' is not a registered namespace

probably due to this line.

Is this intended behavior? Is there any other way to use a custom nested_app namespace?

@omab
Copy link
Owner

omab commented Sep 25, 2014

@Jefffrey, I've pushed an small change to allow the customization of URL namespace. Setting SOCIAL_AUTH_URL_NAMESPACE = 'nested_app'.

This is not released yet, but you can use it if you install python-social-auth from github.

@omab omab closed this as completed Sep 25, 2014
@shoooe
Copy link
Author

shoooe commented Sep 25, 2014

Thank you very much.

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