Skip to main content

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:

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


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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django_watch-0.4-py3-none-any.whl.

File metadata

  • Download URL: django_watch-0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.1

File hashes

Hashes for django_watch-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d0a50a104d8b8066e849d5cf60334cb876dc42c60137d8a4a29a77cb9c8fed88
MD5 a69ed387ca0bfdd74f29ca7ac375f53e
BLAKE2b-256 f80447c940a8e3a9f2dcb6c652143eb49fcda065894b45616ce04509d00e8278

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page