Last active
December 11, 2015 21:48
-
-
Save rasca/4665106 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
try: | |
from django.utils.encoding import smart_str | |
import uwsgi | |
def uwsgi_cachekey(key): | |
return 'django_compressor%s.%s' % (uwsgi.started_on, smart_str(key)) | |
except ImportError: | |
pass | |
COMPRESS_CACHEABLE_PRECOMPILERS = ('text/x-scss', ) | |
COMPRESS_CACHE_KEY_FUNCTION = 'adoora.settings_local.uwsgi_cachekey' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment