Install the package
pip install tms_django_logAdd the application in the INSTALLE_APPS:
INSTALLED_APPS = [
...
'django.contrib.admin',
'django.contrib.contenttypes',
'tms_django_log',
...
]Apply migrations
python manage.py migrateThen use the shortcut
from tms_django_log.models import add_log
add_log("Something happened", detail="More details here", level=3)