Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

http://www.djangosnippets.org/snippets/1350/ Chris Beaven (aka SmileyChris) Django Heresies

33,777 views

Published on

http://www.djangosnippets.org/snippets/1350/
Chris Beaven (aka SmileyChris)


'''
A smarter {% if %} tag for django templates.

While retaining current Django functionality, it also
handles equality, greater than and less than operators.
Some common case examples::

{% if articles|length >= 5 %}...{% endif %}
{% if quot;ifnotequal tagquot; != quot;beautifulquot; %}...{% endif %}
'''



{% load smartif %} replaces the Django {% if %} tag

Published in: Technology, Business
  • Good slide on Django. I’m Ana Mui Stanley, working on my latest site on lyrics, www.lyrics-search.org/ . I enjoy reading the slide.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • I have learned a couple of things from your presentation. Nicely done!

    http://www.riding-mower.org/

    http://www.riding-mower.org/la105-john-deere-lawn-tractor/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Good and balanced presentation. Easy to understand.

    John.
    www.freeringtones.ws/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hello.. sound good.. great sharing

    Regards
    Anisa
    http://phonehut.info
    http://www.jpolls.net
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Django <3
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

×