One way to accomplish this is to use a custom context processor to add
the variable to each and every response. You will need to explicitly
pass in the request_context for the view(s), as far as I know, to make
this work.

Brandon

On Jul 28, 1:19 pm, Dirso <dir...@gmail.com> wrote:
> Hi,
> I created a template with a base file for all template files named
> 'base.html' (for the brazilian website) then I used 'extends
> base.html' in a base_in.html used as base file for the english version
> of the website (I'll work with the django multi language feature
> later, for now I'll use the templates). My problem is, I used a <base
> href="http://localhost:8000/"; /> tag in the base.html and it should be
> valid for base_in.html too, but all web pages extending base.html
> point their links tohttp://localhost:8000/mylinkxxxx.htmlfor example
> (as it was suppose to) but the ones extending base_in.html don't. Not
> sure if it's a bug (I'm quite new with django to point a bug).
> So the solution I found was create a global variable (MYPATH for
> example) with the path I want and added in the begging of the links
> (href="{{ MYPATH }}/mylinkxxxx.html"), just like we do with the media
> stuff. How can I do that? I tried to add it to the configuration file
> but no luck.
>
> Thanks,
> Dirso.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to