I am building a site in the new pbs bento, and am being forced to use django for this instance, which I am not familiar with. Here is what I have:
{% load sekizai_tags filertags %}
{% with "%Y-%m-%d %I:%M %p" as the_time %}
{% if the_time_gteitem01.date %}
..............
{% endif %}
{% endwith %}
item01.date
is declared elsewhere, and I am for sure that it works fine.
My question is am I doing this right?
I am trying to get the current date and place it in the_time
. Then I am checking to see if the_time
is greater or equal to item01.date
, {% if the_time_gteitem01.date %}
. Then I have some html that happens if it is true. Is gte greater than or equal to?
Sorry if I sound like a noob to this, but have never used django or python, and have gotten all my django knowledge from other examples.
Thanks ahead of time.