﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8582	Changing password on a new install generates a NoReverseMatch exception	Joshua Kugler <joshua@…>	nobody	"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),
)
}}}

"		closed	contrib.admin	1.0-beta		duplicate	password_change_done, NoReverseMatch		Unreviewed	0	0	0	0	0	0
