Utils.py +
Utils.py is a python file with some util functions for the whole app.
Function that returns the theme from a request. Theme can be light or dark depending if both themes are activated on settings.py.
A Python decorator that caches the result of a function/method until the force_update
keyword argument is passed in the function call.
Ideally almost all django applications can be disabled just by removing them from the INSTALLED_APPS
on the settings.py
.
This functions returns True
if an application is installed or not. Use this please.
Functions that returns True
if a model instance is on the BD or not.
Function created for adapting the MessageServiceManager into other apps. Just call it with the user and message and will send a message to Slack & other services you have enabled.