Note that there are some explanatory texts on larger screens.

plurals
  1. POCollectstatic and S3: not finding updated files
    primarykey
    data
    text
    <p>I am using Amazon S3 to store static files for a Django project, but <code>collectstatic</code> is not finding updated files - only new ones.</p> <p>I've been looking for an answer for ages, and my guess is that I have something configured incorrectly. I followed <a href="http://blog.doismellburning.co.uk/2012/06/25/django-and-static-files/" rel="nofollow noreferrer">this blog post</a> to help get everything set up.</p> <p>I also ran into <a href="https://stackoverflow.com/questions/6618013/django-staticfiles-and-amazon-s3-how-to-detect-modified-files?lq=1">this question</a> which seems identical to my problem, but I have tried all the solutions already.</p> <p>I even tried using <a href="https://github.com/FundedByMe/collectfast" rel="nofollow noreferrer">this plugin</a> which is suggested in <a href="https://stackoverflow.com/questions/16805232/faster-alternative-to-manage-py-collectstatic-w-s3boto-storage-backend-to-syn/17528513#17528513">this question</a>.</p> <p>Here is some information that might be useful:</p> <p><strong>settings.py</strong></p> <pre><code>... STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) ... # S3 Settings AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME'] STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage' S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME STATIC_URL = S3_URL AWS_PRELOAD_METADATA = False </code></pre> <p><strong>requirements.txt</strong></p> <pre><code>... Django==1.5.1 boto==2.10.0 django-storages==1.1.8 python-dateutil==2.1 </code></pre> <p><strong>Edit1:</strong></p> <p>I apologize if this question is too unique to my own circumstances to be of any help to a large audience. Nonetheless - this is has been hampering my productivity for a long time and I have wasted many hours looking for solutions, so I am starting a bounty to reward anyone who can help troubleshoot this problem.</p> <p><strong>Edit2:</strong></p> <p>I just ran across a similar problem somewhere. I am in a different timezone than the location of my AWS bucket. If by default <code>collectstatic</code> uses time stamp, could this interfere with the process?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload