In order to comment out the needed part of the code, put the {% comment %} tag before needed code and {% endcomment %} tag after it.