Issues

Issue #161 duplicate

1.1.7 collectstatic ValueError

David Gouldin
created an issue

Requirements:

  • django==1.5.1
  • boto==2.8.0
  • django-storages==1.1.7

Using backend storages.backends.s3boto.S3BotoStorage, collectstatic results in a ValueError with the following traceback:

  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/core/management/base.py", line 385, in handle
    return self.handle_noargs(**options)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 164, in handle_noargs
    collected = self.collect()
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect
    handler(path, prefixed_path, storage)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 285, in copy_file
    if not self.delete_file(path, prefixed_path, source_storage):
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 217, in delete_file
    self.storage.modified_time(prefixed_path)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/storages/backends/s3boto.py", line 444, in modified_time
    return parse_ts(entry.last_modified)
  File "/Users/dgouldin/virtualenv/fb_avatar/lib/python2.7/site-packages/boto/utils.py", line 395, in parse_ts
    dt = datetime.datetime.strptime(ts, ISO8601_MS)
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'Sat, 30 Mar 2013 19:21:45 GMT' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

Comments (3)

  1. Log in to comment