Hassan Baig
Hassan Baig

Reputation: 15804

Django template tag conventions

Is there any difference between the following Django template tags, or are both equivalent? They basically have differing quotation marks:

<a href="{% url 'edit_profile' %}#section0">

and

<a href='{% url "edit_profile" %}#section0'>

Note: #section0 is an HTML anchor.

Upvotes: 0

Views: 85

Answers (1)

chem1st
chem1st

Reputation: 1634

None of quotation mark is strictly required - you may use both of them. The only rule you must follow is to use the same quotation mark at the beginning and at the end of statement.

Upvotes: 1

Related Questions