Opened 5 years ago

Closed 5 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: UI/UX:

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.

Change History (1)

comment:1 Changed 5 years ago by canburak

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top