Monday, April 22, 2013

Notes: comment HTML code in Django Template

Just a small note.
When using Django 1.1.1,  do not just comment out the HTML blocks in Template, completely delete them or It will raise error (e.g template syntax error, reverse ...). Because of the template parser of Django won't ignore the commentd blocks (<!-- ... -->), so everything in there will be proceeded.
Trinh