#24430: wildcard matching and reversing of URLs
-----------------------------+--------------------------------------
     Reporter:  eskhool      |                    Owner:  nobody
         Type:  New feature  |                   Status:  closed
    Component:  Core (URLs)  |                  Version:  1.7
     Severity:  Normal       |               Resolution:  wontfix
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------

Comment (by charettes):

 I suggest you have a look at how `LocaleRegexURLResolver` work. You just
 have to write and URLResolver that get or create a tenant specific admin
 site in a thread safe way and delegate the true url resolving to
 `tenant_adminsite.urls`. It's definitely doable.

 If you need help creating such a resolver I suggest you have a look at our
 [https://docs.djangoproject.com/en/1.7/faq/help/ different support
 channels] since this ticket tracker isn't the right place to get help.

 Keep in mind that your use case is very specific and that even if we added
 a request argument to the `reverse` tag we'd have to either make the
 request a thread local object (this is not going to happen) or convert all
 the admin reverse calls (direct or through `{% url %}`) to pass the
 request along. And I'm not even talking about third party admin apps that
 would require to also be converted.

 There's already a supported and documented way of namespacing and
 deploying multiple admin sites and from what I can see it's perfectly
 suitable for your use case.

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

Reply via email to