TEMPLATE_DIRS and CACHE_MIDDLEWARE_* keys appear to be shared between production and dev. Should they be in base?