Q. Which template tag is used to comment code in Django templates?

  • (A) {# comment #}
  • (B) <!-- comment -->
  • (C) // comment
  • (D) {% comment %}
πŸ’¬ Discuss
βœ… Correct Answer: (A) {# comment #}
Explanation: `{# comment #}` is used for template comments in Django.
Explanation by: Mr. Dubey
`{# comment #}` is used for template comments in Django.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate