#7466: newforms-admin: Handle relative paths in documentation templates
-----------------------------------------------------+----------------------
Reporter: handelaar <[EMAIL PROTECTED]> | Owner: shnur
Status: reopened | Milestone: 1.0
Component: Admin interface | Version:
newforms-admin
Resolution: | Keywords: relative
links admin nfa-blocker
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------------------------+----------------------
Changes (by Karen Tracey <[EMAIL PROTECTED]>):
* status: closed => reopened
* resolution: fixed =>
Comment:
Not all relative links are working after the fix. For example, if you go
to Documentation -> Models -> auth.Permission the links are relative to
that page and so do not work. Similarly for Documentation -> Models ->
admin.LogEntry. I put a print statement in where the root_path is
calculated and it seems the problem is the app_label for these is
'contenttypes' instead of 'auth' or 'admin':
{{{
Django version 0.97-newforms-admin-SVN-7939, using settings
'xword.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
root_path for request.path /admin/doc/models/auth.group/, app_label auth,
model_name group is: /admin/
[17/Jul/2008 09:11:52] "GET /admin/doc/models/auth.group/ HTTP/1.1" 200
2572
[17/Jul/2008 09:12:08] "GET /admin/doc/models/ HTTP/1.1" 200 3259
root_path for request.path /admin/doc/models/auth.permission/, app_label
contenttypes, model_name permission is: /admin/doc/models/auth.permission/
[17/Jul/2008 09:12:11] "GET /admin/doc/models/auth.permission/ HTTP/1.1"
200 3262
[17/Jul/2008 09:24:40] "GET /admin/doc/models/ HTTP/1.1" 200 3259
root_path for request.path /admin/doc/models/auth.permission/, app_label
contenttypes, model_name permission is: /admin/doc/models/auth.permission/
[17/Jul/2008 09:24:50] "GET /admin/doc/models/auth.permission/ HTTP/1.1"
200 3262
[17/Jul/2008 09:26:03] "GET /admin/doc/models/ HTTP/1.1" 200 3259
root_path for request.path /admin/doc/models/admin.logentry/, app_label
contenttypes, model_name logentry is: /admin/doc/models/admin.logentry/
[17/Jul/2008 09:26:06] "GET /admin/doc/models/admin.logentry/ HTTP/1.1"
200 3250
}}}
I didn't do an exhaustive search nor much experimenting with routes other
than 'Models' and I've run out of time for now so figured I'd just report
this much.
--
Ticket URL: <http://code.djangoproject.com/ticket/7466#comment:8>
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
-~----------~----~----~----~------~----~------~--~---