Django website error 500 when uploading while using AWS

I am running a Django website on an EC2 instance while having my static files on S3 Bucket Storage and every time I try to upload something the post request returns Error Code 500 Internal Server Error.

The code works locally with the bucket storage, but it doesn't work with the EC2 instance.

Back to Top