Useful configuration for Django views using a decorator