Add message middleware to django app

- required for events storage of graphite
- [refs #58028842]