Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large CSS file Online Compression crashing Django #586

Closed
distributedlock opened this issue Dec 25, 2014 · 0 comments · Fixed by #700
Closed

Large CSS file Online Compression crashing Django #586

distributedlock opened this issue Dec 25, 2014 · 0 comments · Fixed by #700
Labels

Comments

@distributedlock
Copy link

Today I was planning on switching from Foundation to Semantic UI. Semantic CSS file is huge compared to say bootstrap or foundation and so I tried to compress it via Online Compression, but Django crashed because compression was taking too long. I've circumvented this by using offline compression which still takes around 1-2 mins but it eventually works. I was wondering why this was happening when doing it during online compression. Also, is there a way to have successful online compression for large files without crashing django? I wasn't sure if this was a bug in the django-compressor itself or was because it was trying to compress a large file in the request/response cycle.

My compressor related settings:

# Django Compressor Settings
COMPRESS_ENABLED = True

COMPRESS_OUTPUT_DIR = ''

COMPRESS_CSS_FILTERS = [
     'compressor.filters.cssmin.CSSMinFilter',
     'compressor.filters.css_default.CssAbsoluteFilter',
]
COMPRESS_JS_FILTERS = [
     'compressor.filters.jsmin.JSMinFilter'
]

COMPRESS_OFFLINE = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants