#7810: Url to contrib.admindocs is still hardcoded in base template of
contrib.admin
-----------------------------+----------------------------------------------
Reporter: shanx | Owner: nobody
Status: new | Milestone: 1.0 alpha
Component: Admin interface | Version: newforms-admin
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
In revision 7947 of newforms-admin, the base template of contrib.admin app
still hardlinks to the admindocs with:
{{{
#!python
<a href="{{ root_path }}doc/">{% trans 'Documentation' %}</a>
}}}
This behaviour is incorrect, since users now decide for themselves where
the admindocs recide. The hard coding of the url effectively forces a user
to add:
{{{
#!python
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
}}}
Above their admin app mapping in urls.py. In the current situation
changing the url to for example be:
{{{
#!python
(r'^admin/documentation/', include('django.contrib.admindocs.urls')),
}}}
In #6962 it was already mentioned to use a named url, since there is
coupling between the admin and admindocs app anyway.
--
Ticket URL: <http://code.djangoproject.com/ticket/7810>
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
-~----------~----~----~----~------~----~------~--~---