Yes, certainly worth mentioning. ContentTypes is the secret sauce in django admin for sure and extremely useful for building generic functionality without hard coding to specific models. It’s like a through table in a relational db, where entities can be tracked. And it’s all automatic, built into every django app.
On 4 October 2023 at 18:44:13, Ruby ([email protected]) wrote: > Hi there, > I don't know if there's a library for that, but I believe you can build > what you need using the built-in Django Content-Type > <https://docs.djangoproject.com/en/stable/ref/contrib/contenttypes/> > I have used it a few times and Django admin site also uses it under the > hood. > > On Wed, Oct 4, 2023 at 4:58 AM David Nugent <[email protected]> wrote: > >> The may not be enough context in your question but I imagine that the >> following link may take you to something that may work for you. >> >> https://docs.djangoproject.com/en/4.2/topics/signals/ >> >> On 4 October 2023 at 14:42:45, Ram ([email protected]) wrote: >> >>> Hi, >>> >>> We would like to add this feature in our Web application and capture the >>> following events in log files: >>> >>> 1. If any image is deleted by any reason >>> 2. Any content is deleted by any reason >>> >>> Does Django have any libraries or functions to achieve this? >>> >>> Best regards, >>> ~Ram >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F3GDxbL_3C20ygwE9yumUdLxDgZJRdLEuM9Wdm%2BeTyfEA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F3GDxbL_3C20ygwE9yumUdLxDgZJRdLEuM9Wdm%2BeTyfEA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAE5VhgUYV_r5yA%3DSn3Q1Cyie8mG71W6w6E1N%3D6wcBdVSoLvQOQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAE5VhgUYV_r5yA%3DSn3Q1Cyie8mG71W6w6E1N%3D6wcBdVSoLvQOQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAPUD46vdk9bV%3DjC6OZa_DMx8feBwWcdUJ23WhjE9O-0LfZQeDw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPUD46vdk9bV%3DjC6OZa_DMx8feBwWcdUJ23WhjE9O-0LfZQeDw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgXigaf85f0UTDJY_tqLaZGOT4sxYu37O6_ZF0vSH68AeA%40mail.gmail.com.

