Skip to content

Log Guide [EN US]

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

The log system is used to collect important information about Amadeus's users profile, giving the possibility to know which parts are more accessed and how much time are spent on it, among other things. With this bunch of information we are able to improve the students learning by telling him directions to increase his grades.

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;