Move *DEBUG and TEMPLATE_DIRS to local_settings