[Bug] Inconsistent Quotation Marks in Django Template {% url %} Tags
Closed this issue · 4 comments
Description
Inconsistent use of quotation marks in Django template {% url %}
tags. Some tags use single quotes ('
) and others use double quotes ("
), which can lead to readability issues or potential template rendering problems. Standardizing to single quotes ensures consistency and avoids confusion.
Reproduction
- Open any Django template file.
- Open scholarship folder
- Navigate to
index.html
- Locate instances where the
{% url %}
template tag is used. - Observe that some tags use single quotes and others use double quotes (check other files).
- The inconsistency can affect readability and may cause issues in template parsing in certain cases.
Expectation
All {% url %}
tags should use single quotes ('
) for consistency across the codebase.
Examples
- single quotes (
'
)- ...
- double quotes (
"
)
Additional context
This issue is primarily related to code style and readability, but maintaining consistency in quotation marks can also help prevent syntax issues in future updates or changes to the templates.
Resolution
- I would be interested in resolving this bug.
All
{% url %}
tags should use single quotes ('
) for consistency across the codebase.
👍🏻 Agreed, especially given the prevalence of double quotes ("
) in the HTML
yes, @TimidRobot.
Thank you.
@rypptc please make a comment here so I can assign the issue to you
Ok, thank you