-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (25 loc) · 766 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
The official repository for ``django-statistics`` is at https://github.com/denz/django-statistics.
This is an attempt to improve the application
Dependencies:
_ django-tracking
_ django-visitors
_ python-geoip libc6 libgeoip1
Configuration:
in settings.py for untrack some urls:
STATISTICS_UNTRACK_URLS = ["/favicon","/dajax","/jsi18n" ..... ]
INSTALLED_APP += (
...
'tracking',
'visitor',
'statistics',
)
MIDDLEWARE_CLASSES += (
'tracking.middleware.VisitorTrackingMiddleware',
'tracking.middleware.VisitorCleanUpMiddleware',
'tracking.middleware.BannedIPMiddleware',
'visitor.middleware.VisitorMiddleware',
)
SESSION_COOKIE_AGE = 3600
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_SAVE_EVERY_REQUEST = True
TRACKING_TIMEOUT = 1