Skip to content

Rethought/django-util-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Django Util Middleware

Utility middleware for use across projects which use Django or Django-REST-Framework.

Middleware

JSON Exceptions

Returns Python exceptions as a JSON response, in place of the standard Django HTML response, in the following format:

{
"ERROR": "[the error message as a single line]",
"TRACEBACK": "[the multi-line traceback]"
}

Timestamp Header

Adds a Timestamp header to all responses, useful for comparing out-of-sync responses to filter for newest.

About

Utility middleware for Django and DRF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages