Viewing posts tagged Django
When you are working with AWS serverless, You probably has faced body size limit for your lambda function. Basically It won't allow file uploads beyond size limit specified.
Here is guide if you are using Django in your website and deployed on AWS Lambda + API Gateway ( Zappa ) And want to allow file uploads of any size in Django Admin using AWS S3 Identity based uploads.
Write One API which give response as following json :
`/api/awsIdentity/` // any endpoint you like make sure authenticated and GET only
Your widget for File Field And Admin Form will looks like this :
from django import forms
from django.contrib import admin
Connect to Digital Ocean server :