Simple and useful django middleware for 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:
if DEBUG:
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 • Total time • 0.35s"""
TODO
typing
__doc__ strings
Try my free time tracker
My free time tracker for developers Workhours.space.
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.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4a32f40d23bf749c5d0eadef45023017e3eca37232d7f639b5ea61d7af97435 |
|
MD5 | ef9a8e97ed8869cbf90bc4013015068d |
|
BLAKE2b-256 | 5f4875b1fc292b86eb766572e683d6b22bd7ba547659c63a38143b7aceb4d2dd |