Turn off debug in the template settings

This will hopefully fix the circular imports in the Travis tests.