Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm: How to switch to regular HTML comments (Ctrl+Slash) in Django

Tags:

django

pycharm

My PyCharm is using Django template-style comments {# #} when editing HTML files. Is there any way to change it to regular HTML comments? I don't use Django templates, and I'm tired of typing comments by hand.

like image 714
Ognjen Avatar asked Dec 28 '14 14:12

Ognjen


People also ask

How do I comment out code in Django?

To comment out a block of code in a Django template, use the {% comment %} and {% endcomment %} tags and pass the code to not render between the tags.


1 Answers

File | Settings | Python Template Languages, change "Template language" to None.

like image 194
yole Avatar answered Sep 18 '22 15:09

yole