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.git

安装django-tracking 或 django-tracking2

pip install django-trackinggithub

pip install django-tracking2django

Note会出错: no module named listenersbash

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

配置

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

INSTALLED_APPS = (this

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

).net

未完待续~code

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

相关文章
相关标签/搜索