django-statsy
django-statsy copied to clipboard
Cannot make it work. Python 3.5 Django 1.11 'function' object has no attribute 'status_code'
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 |
Same problem here, any clue yet?