Unverified Commit 8ca3e9af authored by Carlos Eduardo Ribas's avatar Carlos Eduardo Ribas Committed by GitHub
Browse files

Merge pull request #561 from RNAcentral/check-django-compressor

Enable django-compressor
parents 1437d145 eea58ed3
......@@ -39,7 +39,6 @@ else
ENVIRONMENT = get_environment()
INTERNAL_IPS = ('127.0.0.1', '192.168.99.1')
DEBUG_TOOLBAR_CONFIG = {'SHOW_TOOLBAR_CALLBACK': lambda request: DEBUG}
COMPRESS_ENABLED = False
S3_SERVER = {
"HOST": "$S3_HOST",
"KEY": "$S3_KEY",
......@@ -136,4 +135,8 @@ fi
echo "INFO: Copying the static files"
python "${RNACENTRAL_HOME}"/rnacentral/manage.py collectstatic --noinput
# Run django compressor
echo "INFO: Running django compress"
python "${RNACENTRAL_HOME}"/rnacentral/manage.py compress
exec "$@"
\ No newline at end of file
......@@ -353,10 +353,15 @@ COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
COMPRESS_ROOT = STATIC_ROOT
COMPRESS_CSS_HASHING_METHOD = 'content'
COMPRESS_CSS_FILTERS = [
'compressor.filters.css_default.CssAbsoluteFilter',
'compressor.filters.cssmin.rCSSMinFilter',
]
COMPRESS_FILTERS = {
'css': [
'compressor.filters.css_default.CssAbsoluteFilter',
'compressor.filters.cssmin.rCSSMinFilter',
],
'js': [
'compressor.filters.jsmin.JSMinFilter',
]
}
# Use a simplified runner to prevent any modifications to the database.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment