#21927: URL namespacing improvements
--------------------------------------+------------------------------------
     Reporter:  aaugustin             |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Core (URLs)           |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by bendavis78):

 A major problem i see with url namespaces is that if the user of an app
 specifies a namespace, it will break url reversals within the app itself
 (even when using current_app). If I want my app to support namespacing,
 and I don't want my url reversals to break within my app, I have to
 provide a function that accepts a namespace argument and returns a triple
 and instruct the user to use that instead of specifying a namespace in in
 include(). This makes the namespace argument to include() fairly useless,
 IMHO. It also forces a non-standard API for namespacing urls.

 If what this ticket proposes can fix that, I'm all for it.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.a77e01b2809c44a22039a5e8a3a9dedb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to