URLs are hardcoded in the panel template #300

Closed
gavinwahl opened this Issue Jul 11, 2012 · 2 comments

Projects

None yet

3 participants

@gavinwahl

The urls the templates use, like /__debug__/template_source/, are hardcoded in the templates, they don't use {% url %}. I attempted to replace them, but it looks like there are problems with the toolbar's swapping of urlconfs, so the debug URLs can't be reversed without passing the debug toolbar urlconf to django.core.urlresolvers.reverse.

I'm not sure how to make the correct urlconf available in the templates.

I need this because I have a Django installation not on the root directory of the site, so urls need to get SCRIPT_NAME/FORCE_SCRIPT_NAME attached to them

@aaugustin

Thanks for the report. This is a duplicate of #84.

@aaugustin aaugustin closed this Oct 17, 2013
@ionelmc

There's a fix for this in #421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment