Opened 16 years ago

Closed 16 years ago

Last modified 12 years ago

#8582 closed (duplicate)

Changing password on a new install generates a NoReverseMatch exception

Reported by: Joshua Kugler <joshua@…> Owned by: nobody
Component: contrib.admin Version: 1.0-beta
Severity: Keywords: password_change_done, NoReverseMatch
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I searched for this bug, best I knew how...didn't find anything on it.

  1. Installed 1.0Beta1
  2. Activated the admin per the instructions in the tutorial
  3. Logged in
  4. Clicked on the "Change password" link (top right of the page)
  5. Changed password
  6. Got this:
Environment:

Request Method: POST
Request URL: http://demo.sktdev.com/jkugler/admin/password_change/
Django Version: 1.0-beta_1-SVN-8472
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')


Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
  86.                 response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in root
  161.             return self.password_change(request)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in password_change
  197.         return password_change(request)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in __call__
  67.             return self.view_func(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py" in password_change
  139.             return HttpResponseRedirect(reverse('django.contrib.auth.views.password_change_done'))
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse
  307.             *args, **kwargs)))
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse
  291.         raise NoReverseMatch("Reverse for '%s' not found." % lookup_view)

Exception Type: NoReverseMatch at /jkugler/admin/password_change/
Exception Value: Reverse for '<function password_change_done at 0x8cc92cc>' not found.

This is under mod_python. Apache config:

    <Location "/jkugler/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE skaconnect.settings
        PythonOption django.root /jkugler
        PythonDebug On
        PythonPath "['/home/jkugler/code'] + sys.path"
        PythonInterpreter jkugler_python
        PythonAutoReload On
    </Location>

urls.py:

from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
)

Change History (2)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: duplicate
Status: newclosed

This is #8493, fixed in [8473]. Thanks for the clear report, in any case.

comment:2 by Jacob, 12 years ago

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top