Opened 15 years ago
Closed 15 years ago
#14191 closed (invalid)
urls.py works inconsistently
| Reported by: | canburak | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | fatihkoksal@… | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
URL matching system works from top down, while name registration works bottom up.
When I have the following urls:
/accounts/<userid>/, name=account /someprefix/accounts/<userid>/, name=account
{% url account testuser %} resolves to /someprefix/accounts/testuser/.
Based on the order of apps in INSTALLED_APPS defining template overriding, I expected URL naming to work that way.
Note:
See TracTickets
for help on using tickets.