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:

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


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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_watch-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for django_watch-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a32f40d23bf749c5d0eadef45023017e3eca37232d7f639b5ea61d7af97435
MD5 ef9a8e97ed8869cbf90bc4013015068d
BLAKE2b-256 5f4875b1fc292b86eb766572e683d6b22bd7ba547659c63a38143b7aceb4d2dd

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