--
Ticket URL: <https://code.djangoproject.com/ticket/27243>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "resolvers.diff" added.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
For discussion of this issue see: https://groups.google.com/forum/#!topic
/django-users/FVH1sA_j1tM
--
Ticket URL: <https://code.djangoproject.com/ticket/27243#comment:1>
* needs_tests: 0 => 1
Comment:
Can you please summarize the discussion and explain what use case this
solves? Tests are also needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/27243#comment:2>
Comment (by erob):
I want to make Django 1.10 fully compatible with my urlpatterns
configuration. I use a custom urlresolver module (notmm.utils.urlmap) to
allow mapping url patterns to named views:
{{{
from notmm.utils.urlmap import RegexURLMap
urlpatterns = RegexURLMap()
urlpatterns.add_routes('foobar.views',
(r'^index.html$', 'index'),
)
}}}
add_routes() automatically create a fully qualified callback object to
ensure the view function is a callable. However, Django doesn't handle
fully qualified module names in reverse() without this patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/27243#comment:3>
Comment (by timgraham):
I guess you might be running into problems because Django 1.10 removed
support for string `view` arguments in `url()`
(a25d3ce007b90a0516aed54fc1c5a16510a290e4 and/or
785cc71d5b3300e2702b0b2fc7316e58ca70b563). I'm not sure whether or not we
can accommodate the use case, but as-is your patch crashes the test suite.
--
Ticket URL: <https://code.djangoproject.com/ticket/27243#comment:4>
* status: new => closed
* resolution: => needsinfo
Comment:
Please reopen if you can add more details and provide a tested patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/27243#comment:5>