Created
June 2, 2009 18:54
-
-
Save benspaulding/122494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Middlware munging in staging settings.py | |
REMOVED_MIDDLEWARE_CLASSES = ( | |
'django.middleware.cache.UpdateCacheMiddleware', | |
'django.middleware.cache.FetchFromCacheMiddleware', | |
) | |
ORIGINAL_MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES | |
MIDDLEWARE_CLASSES = [] | |
for mwc in ORIGINAL_MIDDLEWARE_CLASSES: | |
if not mwc in REMOVED_MIDDLEWARE_CLASSES: | |
MIDDLEWARE_CLASSES.append(mwc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment