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

相關文章
相關標籤/搜索