Simple and useful django middleware for real-time logging.
Project description
django-watch
Light and useful django middleware for real-time logging in development.
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 GET /profiles/views.py | • todo_list_view • Line number 1934
| request.GET: <QueryDict: {'a': ['b']}>
| Exception
| TRACEBACK:
Traceback (most recent call last):
File "handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/profiles/decorators.py", line 158, in inner_decorator
return function(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/main/decorators.py", line 111, in wrapper
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/userprofiles/views.py", line 1991, in todo_list_view
print(undef)
^^^^^^
NameError: name 'undef' is not defined
TODO
typing
__doc__ strings
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.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d55e0bca8a4d21821cb0def072a878c5391c6064588cfd18ee3aa6c50893e0 |
|
MD5 | 8978f8b397b569fcb07d3cd13fe82668 |
|
BLAKE2b-256 | 7362bc5e6ec580113ca160b488f94924f3d379e9d80eddce9c00e9a8a96404dc |