Skip to main content

Simple and useful django middleware for real-time logging.

Project description


Simple and useful django middleware for real-time logging.

How to use it

To install run:

pip install django-watch

Add the following lines at the end of file:

MIDDLEWARE = ( MIDDLEWARE + ('django_watch.middleware.WatchMiddleware',) )  

Open your development console and see the result:

""" START /my_project/news/ => news_list: Line number 15 """
kwargs: {'news_id': '2'}
request.GET: <QueryDict: {'published_at': ['today']}>

""" END /my_project/news/ => news_list: Line number 15 """
sql queries time: 0.17
total time: 7.29

That's all.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

django_watch-0.4-py3-none-any.whl (3.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page