Report this

What is the reason for this report?

signaturedoesnotmatch error in django

Posted on September 14, 2019

Hi although this question has been asked here, https://www.digitalocean.com/community/questions/getting-signaturedoesnotmatch-with-digitalocean-spaces but it wasnt answered or followed up. I am having the exact same issue when setting up django static files hosting using DigitalOceanspaces. My settings.py is based on codingwithmich tutorial on Youtube :

AWS_ACCESS_KEY_ID = 'M5YCPZP3QT36OWMMZS23'
AWS_SECRET_ACCESS_KEY = '5Npq/S/7tX2IqBl51p3QEAMJuuGvHuFH4680Cl59M3s'
AWS_STORAGE_BUCKET_NAME = 'open-api-space'
AWS_S3_ENDPOINT_URL = 'https://nyc3.digitaloceanspaces.com'
AWS_S3_OBJECT_PARAMETERS = {
    'CacheControl': 'max-age=86400',
}
AWS_LOCATION = 'open-api-static'

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static'),
]
STATIC_URL = 'https://%s/%s/' % (AWS_S3_ENDPOINT_URL, AWS_LOCATION)
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

I have generated access keys twice but the error persists. Please help me fix this. Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Can anyone please reply to this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.