Django comment Tag

Django comment Tag

Comments

Comments allows you to have sections of code that should be ignored.

Example

Run Example »


Comment Description

You can add a message to your comment, to help you remember why you wrote the comment, or as message to other people reading the code.

Example

Add a description to you comment:

Run Example »


Smaller Comments

You can also use the {# ... #} tags when commenting out code, which can be easier when for smaller comments:

Example

Comment out the word Everyone:

Run Example »


Comment in Views

Views are written in Python, and Python comments are written with the # character:

Example

Comment out a section in the view:

Run Example »

Read more about Python Comments in out Python Comment Tutorial.

ArmenianEnglish