Code

Opened 4 years ago

Closed 4 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.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by canburak

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.