| 14 | |
| 15 | Edit: |
| 16 | |
| 17 | Also, in your example above, I don't think `{% if None|length > 0 %}` is doing what you think. In this case, django will treat `None` as just another template variable. So in fact it is treated the same as `groups` in your first example. You can confirm this like so: |
| 18 | |
| 19 | {{{ |
| 20 | from django.shortcuts import render_to_response |
| 21 | def test_view(request): |
| 22 | return render_to_response("test.html", {'None': 'test'}) |
| 23 | |
| 24 | ##### test.html |
| 25 | |
| 26 | {{ None }} |
| 27 | }}} |
| 28 | |
| 29 | If you run this in a browser you will see `'test'` returned in the response. |