Skip to content

Log Guide [EN US]

Erik Zambom edited this page Dec 2, 2016 · 7 revisions

Dependencies

To be able to use the log system you'll need import in the views.py file of your app the following packages:

  • LogMixin from core.models: used to activate the log system in Class-Based Views;
  • log_decorator from core.decorators: used to activate the log system in Function-Based Views;
  • log_decorator_ajax from core.decorators: used to activate the log system in Function-Based Views that are activated by ajax components like accordion or collapse in case you need to store the time spent by the user with the component open;
  • Log from core.models: used in case you need store the time spent by the user in the page;