Reputation: 15804
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
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