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
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
2 matches
Mail list logo