djangosnippets.org: Latest snippets tagged with 'collectstatic'https://djangosnippets.org/tags/collectstatic/2013-02-04T13:48:40.820703-06:00Custom collectstatic that uses etag and md5 digests to determine whether files on S3 have changed
2013-02-04T13:48:40.820703-06:00millarmhttps://djangosnippets.org/snippets/2889/<p>For use with S3 BotoStorage</p>
<p>STATICFILES_STORAGE ="storages.backends.s3boto.S3BotoStorage"</p>
<p>and</p>
<p>AWS_PRELOAD_METADATA = True</p>
<p>Custom management command that compares the MD5 sum and etag from S3 and if the two are the same skips file copy.</p>
<p>This makes running collect static MUCH faster if you are using git as a source control system …</p>
Freely redistributableCoffeescript compilation
2013-01-26T09:30:02.953310-06:00delfickhttps://djangosnippets.org/snippets/2883/<p>All I wanted was for one to one compilation of coffeescript to javascript.</p>
<ul>
<li>Without special templatetags</li>
<li>Without specifying explicit bundles</li>
<li>Served dynamically in development</li>
<li>Compiled by collectstatic for producton</li>
</ul>
<p>This code is the minimum required for this.</p>
<p>There are two things to take into account:</p>
<ul>
<li>list method to find coffeescript …</li></ul>
Freely redistributable