--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/c3f4359d-ea81-41e8-9187-7c0385019100n%40googlegroups.com.
I reviewed some of the history of this ticket. I tend to agree with the criticisms of adding something akin to an AdminURL to the Django admin.
However, the idea of custom views to apps in the admin is an idea that I find appealing. The history of this ticket features a comment from Tim Graham pointing us back to this ticket:
https://code.djangoproject.com/ticket/18665?cversion=1&cnum_hist=3#comment:3
Allowing registering custom admin views with the admin’s index
It was opened 11 years ago and last modified 6 years ago. This points us to an external package.
https://github.com/koleror/django-admin-views
It looks like it already has URLs implemented in the Django admin interface, so it appears that the volunteer is performing duplicate work. The last update for that project was last year.
Our fellows should probably review both tickets to determine if they should be closed.
It does appear that Julien Phalip and Jacob Kaplan-Moss both wanted the features of Django-admin-views inside the admin app. That might be a conversation worth having.
To change the text of the link you add a name parameter
from django.contrib import admin
admin.site.register_url("https://djangoproject.com", name="Django")
# or
admin.site.register_url("https://djangoproject.com", "Django")
To specify the location to add this url you add the a location parameter. This will allow any string value so that third parties can add override the template and add additional locations for the url.
Currently the url locations are:
- links_module (default)
- navbar
from django.contrib import admin
admin.site.register_url("https://djangoproject.com", name="Django")
admin.site.register_url("https://github.com/django", name="Github", location="navbar")
I am looking for feedback to solidify the design of this new feature.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/c3f4359d-ea81-41e8-9187-7c0385019100n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e541dbab-e81a-4287-afc0-8204d653dcb5n%40googlegroups.com.