#32349: unable to obtain auth template password_reset_done when using namespaced urls ----------------------------------+-------------------------------------- Reporter: millerthegorilla | Owner: nobody Type: Bug | Status: new Component: Template system | Version: 3.1 Severity: Normal | Resolution: Keywords: password_reset | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+--------------------------------------
Comment (by millerthegorilla): I have tried the following: {{{ app_name = 'users_app' urlpatterns = [ path('accounts/', include(('django.contrib.auth.urls', 'users_app'), namespace='users_app')), }}} But with no luck. In Django.contrib.auth.views.PasswordResetView the success_url should reference the app_name variable. in /usr/local/lib/python3.9/site-packages/django/urls/resolvers.py, line 685, in _reverse_with_prefix (lookup_view_s, arg_msg, len(patterns), patterns) ) else: msg = ( "Reverse for '%(view)s' not found. '%(view)s' is not " "a valid view function or pattern name." % {'view': lookup_view_s} ) raise NoReverseMatch(msg) the local vars are : _prefix '/' args () kwargs {} lookup_view 'password_reset_done' lookup_view_s 'password_reset_done' m None msg ("Reverse for 'password_reset_done' not found. 'password_reset_done' is not a valid view function or pattern name.') n None patterns [] possibilities [] self <URLResolver 'django_forum.urls' (None:None) '^/'> -- Ticket URL: <https://code.djangoproject.com/ticket/32349#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/074.b75d400666d59b05466938af19ce369a%40djangoproject.com.