Re: if statement with url

2010-03-10 Thread Nick
Just pop this into your template: {% url Path.to.a.view.for.this.template as the_url %} # you are importing a view's url structure right here and then storing it as "the_url". Since you're not looking for anything dynamic we can end that definition here (more here http://docs.djangoproject.com/en

Re: if statement with url

2010-03-10 Thread HARRY POTTRER
maybe try request.path? On Mar 10, 1:51 pm, Daxal wrote: > Hey, > > I wanted to use a if statement with a url like ... > > if you are on "/cm/add/" > .. > endif > . > option 1: > I was wondering if anyone knows how to code that statement. if can > compare string variables like {% ifequal some