lud0h
lud0h

Reputation: 2390

Stripping server side comments in Python

In JSP:

<%-- Comments removed in server --%>

What is the equivalent when I run in Python/Django ?!?

I don't want the HTML comments visible in the client side...

Upvotes: 2

Views: 272

Answers (2)

Dmitry Gladkov
Dmitry Gladkov

Reputation: 1365

You can use Django template comment block http://docs.djangoproject.com/en/dev/ref/templates/builtins/#comment

They won't be displayed on the client side, but you will see it when editing templates.

Upvotes: 2

gruszczy
gruszczy

Reputation: 42198

{% comment %}

add your comment here :-)

{% endcomment %}

Upvotes: 6

Related Questions