Re: date inside url

2009-09-20 Thread dijxtra
Huh, thank you both for in-depth answers. I implemented Gonzalo's idea with context processors and it worked like a charm... and then I realised that I could achieve the same thing with: url(r'^today$', 'today', name='today'), + {% url today %} + def today(request): t = datetime.date.today()

Re: date inside url

2009-09-18 Thread David De La Harpe Golden
dijxtra wrote: > and here is what I want to put in my template: > > {% url day year={% now "Y"%} month={% now "m"%} day={% now "d"%} %} > > but, ofcourse, I won't put that in my template because you can't have > tag inside of a tag. This may fall into the "just because you can doesn't mean you

Re: date inside url

2009-09-18 Thread Gonzalo Delgado
El Fri, 18 Sep 2009 05:07:51 -0700 (PDT) dijxtra escribió: > I'm sure I'll be hitting my head against the wall when I hear the > answer, but before I do, I just can't get an idea how to solve this > although it seems to me that the solution must be trivial. So, here is > a line from my url patter