[Fixed]-Django password_change noreversematch

1πŸ‘

βœ…

The password_change view does not use the current_app parameter to determine the redirect url. You need to explicitly pass the view name including the namespace:

url(r'^password_change/$',
    auth_views.password_change,
    {'post_change_redirect': 'league:password_change_done'},
    name='password_change'),

The current_app parameter is only used in the {% url %} tag in the template, but it is deprecated and will be removed in Django 2.0. If you need the current app in the template context, you need to set request.current_app.

πŸ‘€knbk

Leave a comment