django pretty print middleware