A set of tools for simple load testing and real-time logging.
Project description
django-watch
Simple and useful django middleware for real-time logging.
https://github.com/Sobolev5/django-watch
How to use it
To install run:
pip install django-watch
Add the following lines at the end of settings.py file:
INSTALLED_APPS = INSTALLED_APPS + ('django_watch',)
MIDDLEWARE = ( MIDDLEWARE + ('django_watch.middleware.WatchMiddleware',) )
Open your development console and see the result:
""" START /my_project/news/views.py => news_list: Line number 15 """
kwargs: {'news_id': '2'}
request.GET: <QueryDict: {'published_at': ['today']}>
""" END /my_project/news/views.py => news_list: Line number 15 """
sql queries time: 0.17
total time: 7.29
That's all.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_watch-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 773ae89beda0a663a83bfbcd4152d62b3f6dd29e416418e1f6cc4d2f47efe5d3 |
|
MD5 | c5c637e2300e00f520a7a513d53b4200 |
|
BLAKE2b-256 | 725229ed87f15d4dab49b01d01c3f1e35e955b737a985d6415f4d21f746f774a |