django-compressor

django-compressor Offline Generation Error

放肆的年华 提交于 2019-12-10 22:07:01
问题 I am trying to compress my CSS files using django-compressor, but I keep receiving this error: compressor.exceptions.OfflineGenerationError: You have offline compression enabled but key "8369f4e513fa5b733304f4b22c67ad97" is missing from offline manifest. You may need to run "python manage.py compress". But, I have checked the manifest file and the key is in fact there. I have already tried with and without COMPRESS_OFFLINE=True and I am not using any inline CSS. I am not using any special

running subprocess.Popen under apache+mod_wsgi is always returning an error with a returncode of -6

ぃ、小莉子 提交于 2019-12-09 03:08:58
问题 I'm hoping someone's seen this - I'm running django-compressor, taking advantage of the lessc setup to render/compress the less into CSS on the file. It works perfectly when invoked from the development server, but when run underneath apache+mod_wsgi it is consistently returning an error. To debug this, I have run the exact command that the filter is invoking as the www-data user (which is defined as the wsgi user in the WSGIDaemonProcess directive) and verified that it works correctly,

Why are my compressed files on S3 returning a 403 Forbidden error?

混江龙づ霸主 提交于 2019-12-08 02:53:34
问题 I'm using django-compressor and django-storages to serve my compressed files on S3 (using these instructions: http://django_compressor.readthedocs.org/en/latest/remote-storages/#using-staticfiles). It works great initially after running the "compress" management command, but after about one hour the compressed css and js files return a 403 Forbidden error even though I haven't made any changes to the files. I can't seem to isolate the problem, so any help would be appreciated. Here are the

Why are my compressed files on S3 returning a 403 Forbidden error?

一曲冷凌霜 提交于 2019-12-06 05:24:10
I'm using django-compressor and django-storages to serve my compressed files on S3 (using these instructions: http://django_compressor.readthedocs.org/en/latest/remote-storages/#using-staticfiles ). It works great initially after running the "compress" management command, but after about one hour the compressed css and js files return a 403 Forbidden error even though I haven't made any changes to the files. I can't seem to isolate the problem, so any help would be appreciated. Here are the settings I am using: COMPRESS_ENABLED = True COMPRESS_URL = "http://mybucket.s3.amazonaws.com/" COMPRESS

How to setup django-compressor on heroku, offline compression to S3

眉间皱痕 提交于 2019-12-04 17:45:43
问题 I followed every QA suggestions found on SO and in different blogs, Everything works ok on my dev machine and nothing works on heroku. here are my settings: DEFAULT_FILE_STORAGE = 'arena.utils.MediaRootS3BotoStorage' # media files # storage AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY') AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME') AWS_PRELOAD_METADATA = True # necessary to fix manage.py

How to setup django-compressor on heroku, offline compression to S3

China☆狼群 提交于 2019-12-03 10:41:17
I followed every QA suggestions found on SO and in different blogs, Everything works ok on my dev machine and nothing works on heroku. here are my settings: DEFAULT_FILE_STORAGE = 'arena.utils.MediaRootS3BotoStorage' # media files # storage AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY') AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME') AWS_PRELOAD_METADATA = True # necessary to fix manage.py collectstatic command to only upload changed files instead of all files S3_URL = 'https://%s.s3.amazonaws.com' %

How to configure django-compressor and django-staticfiles with Amazon's S3?

≡放荡痞女 提交于 2019-12-03 05:38:08
问题 I'm trying to setup django-compressor and django-staticfiles so that the compressed CSS/Javascript and images are served from Amazon's S3. I've managed to setup staticfiles using S3 as the backend so it's collectstatic command sends the files to S3 instead of STATIC_ROOT . However when trying to add django-compressor to the mix is where it all seems to fall apart for me. Following the documentation on setting up remote storages I've created a subclass of the storage backend, boto, so I copied

How to configure django-compressor and django-staticfiles with Amazon's S3?

你。 提交于 2019-12-02 18:00:49
I'm trying to setup django-compressor and django-staticfiles so that the compressed CSS/Javascript and images are served from Amazon's S3. I've managed to setup staticfiles using S3 as the backend so it's collectstatic command sends the files to S3 instead of STATIC_ROOT . However when trying to add django-compressor to the mix is where it all seems to fall apart for me. Following the documentation on setting up remote storages I've created a subclass of the storage backend, boto , so I copied the example to storage.py . Once I start using this cached backend the files are copied into static

running subprocess.Popen under apache+mod_wsgi is always returning an error with a returncode of -6

陌路散爱 提交于 2019-12-01 03:48:35
I'm hoping someone's seen this - I'm running django-compressor, taking advantage of the lessc setup to render/compress the less into CSS on the file. It works perfectly when invoked from the development server, but when run underneath apache+mod_wsgi it is consistently returning an error. To debug this, I have run the exact command that the filter is invoking as the www-data user (which is defined as the wsgi user in the WSGIDaemonProcess directive) and verified that it works correctly, including permissions to read and write the files that it's manipulating. I have also hacked on the django

Does django-compressor work with template inheritance?

∥☆過路亽.° 提交于 2019-11-30 20:01:27
I'm using django-compressor to compress my site's static CSS and Javascript files. Since I serve my site's static assets via Amazon S3, I'm also using django-storages to upload my files to S3. Here's my issue: I'm trying to make a clean base.html template that all my site's other templates can inherit and extend. Here's what it looks like currently: {% load compress %} <html> <head> <!-- test --> {% compress css %} <link rel="stylesheet" type="text/css" media="screen" href="{{ STATIC_URL }}css/styles.css" /> {% endcompress %} {% compress css %} {% block css %}{% endblock %} {% endcompress %} {