O meu retorna esse erro sempre, CSS nao esta funcionando de forma alguma.
(.venv) C:\Users\carlo\OneDrive\Documentos\Work\Prog\Alura\Alura_Space>python manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings.
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
File "C:\Users\carlo\OneDrive\Documentos\Work\Prog\Alura\Alura_Space\manage.py", line 22, in
main()
File "C:\Users\carlo\OneDrive\Documentos\Work\Prog\Alura\Alura_Space\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Python311\Lib\site-packages\django\core\management_init.py", line 442, in execute_from_command_line
utility.execute()
File "C:\Python311\Lib\site-packages\django\core\management_init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python311\Lib\site-packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Python311\Lib\site-packages\django\core\management\base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 209, in handle
collected = self.collect()
^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 135, in collect
handler(path, prefixed_path, storage)
File "C:\Python311\Lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 368, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 278, in delete_file
if self.storage.exists(prefixed_path):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\storages\backends\s3.py", line 500, in exists
self.connection.meta.client.head_object(Bucket=self.bucket_name, Key=name)
File "C:\Python311\Lib\site-packages\botocore\client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\botocore\client.py", line 980, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden