You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I try to python manage.py collect static, I get an error.
(venv)Dereks-MBP:pickle_django dcgoss$ python manage.py collectstatic --noinput
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.arg)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.arg)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/core/management/base.py", line 348, in run_from_arg
self.execute(*args, **cmd_options)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 176, in handle
collected = self.collect()
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 107, in collect
handler(path, prefixed_path, storage)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 321, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 234, in delete_file
if self.storage.exists(prefixed_path):
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/storages/backends/s3boto.py", line 442, in exists
return k.exists()
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/boto/s3/key.py", line 539, in exists
return bool(self.bucket.lookup(self.name, headers=headers))
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/boto/s3/bucket.py", line 143, in lookup
return self.get_key(key_name, headers=headers)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/boto/gs/bucket.py", line 108, in get_key
query_args_l=query_args_l)
File "/Users/dcgoss/Desktop/PickleApp/PickleBackend/venv/lib/python3.4/site-packages/boto/s3/bucket.py", line 231, in _get_key_internal
response.status, response.reason, '')
boto.exception.GSResponseError: GSResponseError: 400 Bad Request
class MediaStorage(GSBotoStorage):
location = settings.MEDIA_FILES_LOCATION
class StaticStorage(GSBotoStorage):
location = settings.STATIC_FILES_LOCATION
They are just there so I can access folders in my bucket.
The text was updated successfully, but these errors were encountered:
dcgoss
added a commit
to dcgoss/django-storages
that referenced
this issue
Feb 29, 2016
The value of this setting used to be derived from the parent class, S3BotoStorage. The value in the parent class was: `host = setting('AWS_S3_HOST', S3Connection.DefaultHost)`, which resolved to 's3.amazonaws.com' instead of the correct 'storage.googleapis.com'.
This fixedjschneier#124 for me.
Every time I try to
python manage.py collect static
, I get an error.Here are my settings:
The custom storages references look like this:
They are just there so I can access folders in my bucket.
The text was updated successfully, but these errors were encountered: