Added export line to set up environment with correct Django settings.
Moved TEMPLATE_DEBUG setting to dev and prod.