Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

wildfoundry/django-asparagus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Asparagus

This is a Django middleware to track down object leaks in your Django application.

To use it, add asparagus.middleware.TrackObjectLeaks to MIDDLEWARE_CLASSES. It should be in the first position.

MIDDLEWARE_CLASSES = ['asparagus.middleware.TrackObjectLeaks'] + MIDDLEWARE_CLASSES

The middleware will print a summary of any objects created but not garbage collected.

if you set the settings ASPARAGUS_TRACK_CLASS to a name of an object (e.g. Thread, then the middleware will render a PNG of the references to any newly created objects.

Note, this is not something you ever want in production. Best to use it to find leaks then remove it from settings entirely.

About

Handy middleware to locate Django object leaks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages