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

RequestContext with named url view throws NoReverseMatch #47

Open
jpatel3 opened this issue Jul 16, 2015 · 0 comments
Open

RequestContext with named url view throws NoReverseMatch #47

jpatel3 opened this issue Jul 16, 2015 · 0 comments

Comments

@jpatel3
Copy link

jpatel3 commented Jul 16, 2015

I am able to configure the subdomain fine, however if I try to load the templates with RequestContext I get error -
NoReverseMatch at /home/
u'social' is not a registered namespace

e.g.
urls.py
urlpatterns = patterns(
'',
url(r'^home/$', 'sampleapp.views.subdomain_home', name='subdomain_home'),
)

view
def subdomain_home(request):
return render_to_response(
'subdomain_home.html',
RequestContext(request)
)

If I remove the RequestContext it works fine (though I run into issue with loading my static files). I believe I am not doing something right configuration wise.

Can someone help? happy to provide more details.

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

1 participant