No I don’t think so given that customisation is already possible. On Thu, 24 Dec 2020 at 15:05, Gagan Deep <the.one.above.all.ti...@gmail.com> wrote:
> Thanks for sharing Adam. This should take care of my use case. > > Do you think there can be a potential use for introducing a > setting/attribute dedicated for adding a landing page? > > Best, > Gagan Deep > > On Wednesday, December 23, 2020 at 8:37:22 PM UTC+5:30 Adam Johnson wrote: > >> You can do this already by changing where the login redirects to in your >> custom AdminSite class >> >> def login(self, *args, **kwargs): >> response = super().login(*args, **kwargs) >> if isinstance(response, HttpResponseRedirect): >> response = HttpResponseRedirect("/custom-page/") >> return response >> >> On Wed, 23 Dec 2020 at 14:59, Gagan Deep <the.one.abo...@gmail.com> >> wrote: >> >>> Greetings of the day, >>> >>> I have use case where I want to show a custom landing page after a user >>> logs into the admin site. One way to do it will be to override the >>> index_template >>> attribute of AdminSite >>> <https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#django.contrib.admin.AdminSite.index_template>, >>> but doing so will not let me use the index page generated by Django admin . >>> >>> I want to keep the index view intact while also providing a custom >>> landing page logged in users on Django's admin site. I think such feature >>> will be helpful for all users of Django. >>> >>> Best, >>> Gagan Deep >>> >>> -- >>> 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/c2774449-3a4d-45ad-99d1-0ef998154827n%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-developers/c2774449-3a4d-45ad-99d1-0ef998154827n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Adam >> > -- > 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-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/746c1d59-1921-4367-b398-f5f853478498n%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/746c1d59-1921-4367-b398-f5f853478498n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Adam -- 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-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0Z6EK1CrSe-%3Dgbd7sXgGPam_cQUu7i62tZcv55MWYWqw%40mail.gmail.com.