On Nov 5, 10:08 am, "yuanyun.ken" <[EMAIL PROTECTED]> wrote:
> I see in django.contrib.admin, there are {{ root_path }} and
> {{ app_path }} in its base.html.
> But if I use them in my template, they are always empty.
> What I should do to enable these variables.

Those template variables are very specific to the admin application.
There's a good chance that what you are trying to do in your own
templates could be achieved with URL naming, URL reverse, or the url
templatetag.

Can you describe where you were thinking of using root_path or
app_path in your own templates?

-RD

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

Reply via email to