Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » current app problem with inclusion_tag [RSS Feed]

#1 Jan. 10, 2011 13:11:17

Raony A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

current app problem with inclusion_tag


i'm having problems with namespace url resolution and inclusion tags,
to say that i have multiple copies of an app deployed, each with its
app_name and reversing urls does work well when the current_app
parameter is set.

also, the {% url %} template tag works well when the current_app is
set on the request context object.

the problem is with templates rendered with inclusion_tags, inside the
Library class code, a new context is created and the current_app is
not preserved in it (it does not matter if the "takes_context" is set)
making further use of {% url %} break, resolving to the default app of
the namespace.

i think this is a bug, but i didn't see it in the django tickets, and
seems this is still happening in the development version.

thanks in advance.

You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.


  • Root
  • » Django
  • » current app problem with inclusion_tag [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support