Re: Variables inside the static tag

2013-05-20 Thread Oscar Carballal
Both solutions worked, thanks! :D 2013/5/20 Per-Olof Åstrand > You may also look at the get_static_prefix tag, which should also do the > job for you. > > Per-Olof > > > > On Monday, May 20, 2013 9:43:58 PM UTC+2, Nikolas Stevenson-Molnar wrote: > >> How about getting the path to the flags, the

Re: Variables inside the static tag

2013-05-20 Thread Per-Olof Åstrand
You may also look at the get_static_prefix tag, which should also do the job for you. Per-Olof On Monday, May 20, 2013 9:43:58 PM UTC+2, Nikolas Stevenson-Molnar wrote: > > How about getting the path to the flags, then tacking on the filename > outside the tag... > > {% static "assets/flags/"

Re: Variables inside the static tag

2013-05-20 Thread Nikolas Stevenson-Molnar
How about getting the path to the flags, then tacking on the filename outside the tag... {% static "assets/flags/" %}{{ request.LANGUAGE_CODE }}.gif _Nik On 5/20/2013 12:13 PM, Oscar Carballal wrote: > Hi, > > I'm migrating to the new static tag in my project, and I ran into a > problem, in some

Variables inside the static tag

2013-05-20 Thread Oscar Carballal
Hi, I'm migrating to the new static tag in my project, and I ran into a problem, in some places I use variables to get the content, but that doesn't work anymore in django 1.5, is there any way to solve this? Current code: What it should be (doesn't work): I've also asked in StackOverflow (ht