页面的用户访问量统计
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',
...
)
未完待续~