#893 closed defect (fixed)
"change password" and "log out" on admin site doesn't work on apache2
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | yes |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
When I setup a django project with apache2 and mod_python, the "change password" and "log out" on admin site doesn't work, I think the link in base.html should not be "/admin/password_change/", it should be "password_change/".
Attachments (2)
Change History (8)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Severity: | normal → major |
---|
my site admin is in:
http://mydomain.com/myproject/admin/
on clicking 'logout' the browser goes to:
http://mydomain.com/admin/logout/ and not to:
http://mydomain.com/myproject/admin/logout/ as it was doing earlier
comment:3 by , 19 years ago
on discussion in IRC it is found that this error is there for sites that do not have admin on '/'. Where admin is on '/' it works
by , 19 years ago
Attachment: | admin-templates.diff added |
---|
comment:4 by , 19 years ago
Severity: | major → normal |
---|
As explained above this has been identified to possibly be due to absolute URLs for the links in the admin interface. Presumably relative URLs would work fine since you'd be in the admin app whatever URL that might be at. I've attached a patch for the basic change-templates. I'm not sure if this will work for all the templates. I'm in a bit of a hurry... will look into it later unless someone else steps up...
by , 19 years ago
Attachment: | admin-templates2.diff added |
---|
svn diff delete_confirmation.html object_history.html
comment:6 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
works for me apache2/mod_python revision 1474