bruth / django-tracking2

django-tracking2 tracks the length of time visitors and registered users spend on your site. Although this will work for websites, this is more applicable to web _applications_ with registered users. This does not replace (nor intend) to replace client-side analytics which is great for understanding aggregate flow of page views.
BSD 2-Clause "Simplified" License
205 stars 67 forks source link

Can't subtract offset-naive and offset-aware datetimes #10

Closed dengyuanzhong closed 11 years ago

dengyuanzhong commented 11 years ago

When visit /dashboard/,

TypeError at /dashboard/ can't subtract offset-naive and offset-aware datetimes

Request Method: GET Request URL: http://mysite.com/dashboard/ Django Version: 1.4 Exception Type: TypeError Exception Value:
can't subtract offset-naive and offset-aware datetimes Exception Location: PROJECT_DIR/tracking/middleware.py in process_response, line 64 Python Executable: /usr/local/bin/python Python Version: 2.7.3 Python Path:
['', '/usr/local/sae/python/lib/python27.zip', '/usr/local/sae/python/lib/python2.7', '/usr/local/sae/python/lib/python2.7/plat-linux2', '/usr/local/sae/python/lib/python2.7/lib-tk', '/usr/local/sae/python/lib/python2.7/lib-old', '/usr/local/sae/python/lib/python2.7/lib-dynload', '/usr/local/sae/python/3rd/django1.4', '/usr/local/sae/python/lib/python2.7/site-packages']

rjmoggach commented 11 years ago

+1 TypeError at / can't subtract offset-naive and offset-aware datetimes

chrisfranklin commented 11 years ago

Hey all,

Fixed by: https://github.com/bruth/django-tracking2/pull/12 waiting for pull request to be accepted.

Cheers,

Chris

bruth commented 11 years ago

Thanks @chrisfranklin Merged and released https://pypi.python.org/pypi/django-tracking2