[Django] #31562: Namespacing in urls to look at default app name

8 views
Skip to first unread message

Django

unread,
May 10, 2020, 4:52:46 AM5/10/20
to django-...@googlegroups.com
#31562: Namespacing in urls to look at default app name
-----------------------------------------+------------------------
Reporter: ferdynice | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (URLs) | Version: 3.0
Severity: Normal | Keywords: dry
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Why do I have to repeat the app name in the urls.py as app_name? In the
spirit of DRY, I thought it would be useful to namespace urls by default
using the name of the app (perhaps making url names also available with
the short name if the short name is unique, to maintain some sort of
backwards compatibility).

If there is good reason for the current behaviour, feel free to close.

--
Ticket URL: <https://code.djangoproject.com/ticket/31562>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 11, 2020, 1:01:10 AM5/11/20
to django-...@googlegroups.com
#31562: Namespacing in urls to look at default app name.
-----------------------------+--------------------------------------
Reporter: Ferdy | Owner: nobody
Type: New feature | Status: closed

Component: Core (URLs) | Version: 3.0
Severity: Normal | Resolution: wontfix

Keywords: dry | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* type: Uncategorized => New feature
* resolution: => wontfix


Comment:

[https://docs.djangoproject.com/en/3.0/intro/tutorial03/#namespacing-url-
names Namespacing URL names] is optional, you don't need to do this.
Proposed "implicit" logic is backwards incompatible and would force all
users to use namespaces.

--
Ticket URL: <https://code.djangoproject.com/ticket/31562#comment:1>

Reply all
Reply to author
Forward
0 new messages