Added django debug toolbar configuration

By setting the corresponding environment variable, the django debug
toolbar is loaded. This is very useful for debugging templates and SQL
queries.

Additionally, two unrelated PEP8 violations have been fixed.