#8582: Changing password on a new install generates a NoReverseMatch exception
-----------------------------------------------------+----------------------
Reporter: Joshua Kugler <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Milestone: 1.0
Component: Admin interface | Version: 1.0-beta-1
Keywords: password_change_done, NoReverseMatch | Stage: Unreviewed
Has_patch: 0 |
-----------------------------------------------------+----------------------
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),
)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8582>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---