zhebrak / django-statsy

Statistics for your Django project
MIT License
63 stars 9 forks source link

Cannot make it work. Python 3.5 Django 1.11 'function' object has no attribute 'status_code' #45

Open ysharoiko opened 6 years ago

ysharoiko commented 6 years ago

Added @statsy

in my views.py import statsy # By the way you did not mention about importing it in views in README

@statsy.watch def filetree(request) ...

In urls.py got url(r'^$', main.views.filetree, name=")

And have an error

Request Method: GET

http://localhost:8000/ 1.11.1 AttributeError 'function' object has no attribute 'status_code' /home/user/Env/dj_test/lib/python3.5/site-packages/django/middleware/common.py in process_response, line 115 /home/user/Env/dj_test3/bin/python 3.5.2

 

jacopsd commented 6 years ago

Same problem here, any clue yet?