Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can django_admin_log be monitored through Django's admin?

The table django_admin_log is useful to monitor the actions of users in the admin. Right now, I can achieve that by querying the database directly. Is there a built-in functionality where I can view the table django_admin_log through Django's admin for all users?

like image 414
Thierry Lam Avatar asked Feb 10 '10 21:02

Thierry Lam


People also ask

What can Django admin do?

The Django admin application can use your models to automatically build a site area that you can use to create, view, update, and delete records. This can save you a lot of time during development, making it very easy to test your models and get a feel for whether you have the right data.

Can Django admin be used in production?

Django's Admin is amazing. A built-in and fully functional interface that quickly gets in and allows data entry is priceless. Developers can focus on building additional functionality instead of creating dummy interfaces to interact with the database.

Should you use Django admin?

No. The django admin is not intended for any end-user. The django admin feature is intended to assist the website developer, and that is all.

What is admin Register Django?

The Django admin is an automatically-generated user interface for Django models. The register function is used to add models to the Django admin so that data for those models can be created, deleted, updated and queried through the user interface.


1 Answers

Can't you just:

from django.contrib.admin.models import LogEntry
admin.site.register(LogEntry)

In one of your admin.py files? I just tested it and it is barebones but it works.

You might want to be more specific and create a ModelAdmin class for LogEntry to provide for a better list view and maybe some filtering abilities. But that should work.

like image 54
cethegeek Avatar answered Sep 21 '22 10:09

cethegeek