#25409: Allow url and groups of urls to be easily tagged and selected
-------------------------------------+-------------------------------------
     Reporter:  atul-bhouraskar      |                    Owner:  atul-
                                     |  bhouraskar
         Type:  New feature          |                   Status:  assigned
    Component:  Core (URLs)          |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by knbk):

 Hi,  the major rework for URLs involves a different approach to the same
 problem. Instead of "tagging" urls and filtering for tags in the
 middleware, it allows you to apply decorators to a group of urls, i.e.:

 {{{
 from ... import login_required

 urlpatterns = [
     ...
     url(r'^private/$', include(private_patterns),
 decorators=[login_required]),
 ]
 }}}

 This will apply the `login_required` decorator to each view in
 `private_patterns`. Most middleware that might be applied to a certain
 section of a site already has matching decorators, so this should give you
 pretty much the same options.

 If you'd like to discuss your approach as an alternative, please raise the
 issue on the mailing list.

--
Ticket URL: <https://code.djangoproject.com/ticket/25409#comment:5>
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/073.cbb43e98511a11e440db0ca2e630531e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to