barseghyanartur / django-fobi

Form generator/builder application for Django done right: customisable, modular, user- and developer- friendly.
https://pypi.python.org/pypi/django-fobi
485 stars 112 forks source link

Now able to store media files in the aws server. #252

Closed saileshkush95 closed 3 years ago

saileshkush95 commented 3 years ago

I just try to make this work, but I'm not sure this is best approach or not

Whenever django-storage is in installed app, media file will be automatically uploaded to the aws server. Need to Include this configurations in settings file.

AWS_ACCESS_KEY_ID = "************************************"
AWS_SECRET_ACCESS_KEY = "***************************************"
AWS_STORAGE_BUCKET_NAME = "************************"
AWS_S3_REGION_NAME = "**********************************"

MEDIA_URL = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.ap-south-1.amazonaws.com/media/"