Тёмный

Set Up AWS S3 Bucket with Django for Static and Media Files 

CodeWithMuh
Подписаться 3,3 тыс.
Просмотров 19 тыс.
50% 1

Learn how to set up an AWS S3 bucket with Django for storing static and media files.
☕ Buy me a coffee: www.buymeacoff...
This tutorial covers step-by-step instructions to connect your Django project with AWS S3, configure AWS credentials, and upload files to the bucket. With this setup, you can store and serve your files securely and with scalability on the AWS cloud.
Watch this tutorial to get started! 💻
👍 Subscribe to My Channel tutorials & Courses.
🔥 Become A Backend Developer in 3 Hours: • Become a Backend Devel...
🔥 Learn Python in 1 Hour: • Python for Beginners -...
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Please let me know if you would like to consult with or hire me.
Hire me on Upwork: www.upwork.com...
Place an order on Fiverr: www.fiverr.com...
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Social Links:
Github: github.com/cod...
LinkedIn: / muhammad-rashid-daha
Upwork: www.upwork.com...
X: / rashiddaha80
Instagram: / rashiddaha1
Medium: / codewithmuh
Website: codewithmuh.com
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
📔 Source Code: github.com/ras...
The article used in this Video:
• / configure-aws-s3-with-...
#amazons3 #s3

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@CodeWithMuh
@CodeWithMuh 9 месяцев назад
Connect with me on LinkedIn: www.linkedin.com/in/muhammad-rashid-daha
@mystemresume
@mystemresume 5 месяцев назад
Your video was very helpful and your explanation and step-by-step tutorial helped me so much, because I’ve been trying to use s3 for a little while now. Thank you!!! 🙏🏼
@CodeWithMuh
@CodeWithMuh 5 месяцев назад
I am happy to hear
@rlopxhan21
@rlopxhan21 Год назад
This video is really informative and well-made.
@CodeWithMuh
@CodeWithMuh Год назад
Glad to hear ☺️
@jahanasultan
@jahanasultan Год назад
Very helpful video, thank you!
@CodeWithMuh
@CodeWithMuh Год назад
Glad to hear. You are welcome. ✨
@naveennirban
@naveennirban Год назад
Love from India
@CodeWithMuh
@CodeWithMuh Год назад
Thanks 🙌
@UBUCURUZITV
@UBUCURUZITV 3 месяца назад
verry helpful. Thanks
@CodeWithMuh
@CodeWithMuh 3 месяца назад
Glad to hear
@pythondjango1798
@pythondjango1798 11 месяцев назад
Thanks 👍👍👍🎉🎉🎉
@CodeWithMuh
@CodeWithMuh 9 месяцев назад
Welcome 😊
@milhoci
@milhoci Год назад
Does anyone knows if amazon changed something in the last month? I´m trying to send the files thru collectstatic and I´m getting the error: botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden. I used s3 + django in the past but now i´m facing this error. My code is the same of the video.
@milhoci
@milhoci Год назад
little update, I discover that the problem is in the s3 that is not allowing to upload and serving the files, I´ve tried to upload manually via browser, but even that I can´t access the files, I get Access Denied... In this case I changed the bucket to accept ACL and manually turn the file public using acl to can use as static files
@max72122
@max72122 Год назад
is it possible to use IAM role by assigning it to ec2 without the need to put the access keys in the code?
@CodeWithMuh
@CodeWithMuh Год назад
Yes, it is possible to use IAM roles to grant permissions to an EC2 instance without the need to put the access keys in the code. When an EC2 instance is launched with an IAM role, temporary security credentials are automatically assigned to the instance. These temporary security credentials are automatically rotated on a regular basis, which helps to ensure the security of your AWS resources. You can then configure your application to use the instance metadata service to retrieve the temporary security credentials, which can be used to make AWS API calls. By using IAM roles, you can simplify your application's security by eliminating the need to manage access keys, and you can also improve security by ensuring that your AWS resources are accessed only by trusted entities. Also, you can create an env file, and only place the env file on the Ec2 instance, Not in Code.
@hopesain5065
@hopesain5065 9 месяцев назад
Icons and the humberger are showing, any solutions on how you resolved this. As for the css is loading just fine. But only icons...
@CodeWithMuh
@CodeWithMuh 9 месяцев назад
Didn't get you
@thabanincube3645
@thabanincube3645 2 месяца назад
Hi Muh, my setup using s3 through bucketeer for heroku is on working. Can you help please?
@CodeWithMuh
@CodeWithMuh Месяц назад
Details
@maazshaikh7905
@maazshaikh7905 2 месяца назад
Is there a free tier for S3 or will we be charged from beginning?
@stivomoses8882
@stivomoses8882 Месяц назад
there is a free tier
@thisisme4547
@thisisme4547 10 месяцев назад
Sir Will it also stored in django media folder? Or only stored in S3 bucket
@CodeWithMuh
@CodeWithMuh 10 месяцев назад
It will be stored on S3.
@DrCash7
@DrCash7 Год назад
I have a WP frontend and Django API. I have the bucket setup with the persmissions etc but i'm not getting any picture uploads 😕
@CodeWithMuh
@CodeWithMuh Год назад
There will be settings or configuration issue. Reach out to me at my email address for help
@ashishchaudhary4938
@ashishchaudhary4938 Год назад
Hey I deployed my project Already on aws by watching youtube video can anybody tell me how to use s3 bucket for media files that are already in the project......i think in this video We can store present....pls help
@Afreedesign
@Afreedesign Год назад
Great video, thanks but I'm getting a 403 error "An error occurred (403) when calling the HeadObject operation: Forbidden"
@CodeWithMuh
@CodeWithMuh Год назад
Make sure configurations are fine
@Afreedesign
@Afreedesign Год назад
@@CodeWithMuh which configurations?
@CodeWithMuh
@CodeWithMuh Год назад
1.Make sure s3 configurations are correct in your settings.py file. 2. Media files are defined in settings.py 3.make sure Public access is enabled on s3. You can also clone my code . If your access is public and your place correct acces keys etc for s3 configuration. And if it works fine. Then issue will be in your code
@Afreedesign
@Afreedesign Год назад
@@CodeWithMuh thank you, I will do that now
@milhoci
@milhoci Год назад
@@Afreedesign Did you have success with that? I´m trying and getting the same error. The AWS changed the policy of ner buckets in April 2023...
@FahadAhmed-ln7so
@FahadAhmed-ln7so Год назад
Hello, I have a static file which is a video to be played on the home page of the website. How do I link the video which is in the s3 bucket to the website?
@CodeWithMuh
@CodeWithMuh Год назад
You have to write code. Which framework you are using
@Coden69
@Coden69 Год назад
i am fullstack dev (django) and i have 1 year exp now i want make a switch in a good company could u please guide me a little about how to get interview call from good reputed company. in between i m getting multiples calls from small small company. thanks in advance
@CodeWithMuh
@CodeWithMuh Год назад
Prepare a Good Portfolio Get Ready Attractive RESUME and then apply. You have to present your Experience and work you did in portfolio and In resume.
@natanfelipe3002
@natanfelipe3002 Год назад
got this An error occurred (InvalidArgument) when calling the PutObject operation: None
@CodeWithMuh
@CodeWithMuh Год назад
You are not sending arguments property. Look at my Backend developer video(Postman section) to see how to send request
Далее
Connect S3 Bucket to EC2 Instance with IAM role
14:46
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 63 тыс.
4 ways to serve static files in Django
8:11
Просмотров 12 тыс.
How to Upload Files to S3 Using Django Storages
11:50