django-tracking2访问量和页面点击数统计

页面的用户访问量统计

django-tracking VS django-tracking2

Note: This is not a new version of django-tracking. These apps have very different approaches and, ultimately, goals of tracking users. This app is about keeping a history of visitor sessions, rather than the current state of the visitor.

django-tracking keeps track of visitors to Django-powered Web sites. It also offers basic blacklisting capabilities.

安装django-tracking 或 django-tracking2

pip install django-tracking

pip install django-tracking2

Note会出错: no module named listeners

解决方案: pip install git+https://github.com/bashu/django-tracking.git

配置

First of all, you must add this project to your list of INSTALLED_APPS insettings.py:

INSTALLED_APPS = (

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
...
'tracking',
...

)

未完待续~

参考链接
1.Django访问量和页面点击数统计
2.Django访问量和页面点击数统计

    原文作者:custer
    原文地址: https://segmentfault.com/a/1190000014451666
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞