Django with AWS - S3 Buckets and CloudFront Distributions for Media Files

  Рет қаралды 11,619

BugBytes

BugBytes

Күн бұрын

Пікірлер: 93
@israasalameh6879
@israasalameh6879 6 ай бұрын
I have watched many videos, but this is the only video that really explains every settings that must be added to the django project. Thanks !!
@bugbytes3923
@bugbytes3923 6 ай бұрын
@@israasalameh6879 thanks for watching - glad to hear the video was helpful!
@israasalameh6879
@israasalameh6879 6 ай бұрын
@@bugbytes3923 I'm trying all those settings in production ( nginx) but its doesn't work ! I mean the collectstatic is working correctly and my static are shown inside my bucket in AWS, but when I open my website and inspect images url... still the urls are from relative path not from aws domain why ?
@FlutterPythoncombo
@FlutterPythoncombo 3 ай бұрын
Hey, buddy . Your videos are vey very helpful, cheers mate, Really enjoy watching them. God bless u
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot, that's amazing to hear! All the best!
@Khaled-fo7tr
@Khaled-fo7tr 3 ай бұрын
Extremely helpful video! I encountered a bit of a challenge getting it to work on Django 5, but your clear explanations made a big difference. Thank you!
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot! Glad to hear you got it working with Django 5.
@keinermendoza4631
@keinermendoza4631 2 ай бұрын
Thanks for explaining this. I was trying to figure out how to implement this kind of CloudFront functionality but in Cloudflare with a custom domain pointing to an R2 bucket. Even though the steps are a bit different, your explanation helps me a lot.
@bugbytes3923
@bugbytes3923 2 ай бұрын
Glad it could help!
@AmiraAsli-t4c
@AmiraAsli-t4c 2 ай бұрын
wow what a brilliant explanation. i wish if you can make a full course on deplying a django website with best practices and production settings
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks - I'll make such a course in the near future for sure!
@sprue_goose
@sprue_goose 11 ай бұрын
You are very very very good at explaining all this. Have loved your videos since you've been making them. Thank you.
@bugbytes3923
@bugbytes3923 11 ай бұрын
Thanks a lot for that comment, really appreciate the kind words! Thanks for watching!
@victoralexandre9653
@victoralexandre9653 8 ай бұрын
Such a great explanation! Helped me a lot, now I know how to correctly use AWS to serve and store files. All the 3 videos about this are really full of good and useful content. Thanks man!
@bugbytes3923
@bugbytes3923 8 ай бұрын
Awesome to hear - thanks a lot man!
@KM98120
@KM98120 Жыл бұрын
Awesome content. Would love to see more Django + AWS stuff in the future.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks Kevin. I'll definitely do some more soon!
@tejender_kumar
@tejender_kumar Жыл бұрын
Thanks man. This tutorial almost answer my all questions regarding s3. Remaining i will ask after doing few experiments 😊
@bugbytes3923
@bugbytes3923 Жыл бұрын
Awesome! Good luck and thanks for watching :)
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
A real great content ! Awesome. Thank you so much Master 🙌🏾
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks very much! Hope it was useful.
@TomislavMiletic
@TomislavMiletic Жыл бұрын
So, for the last 10 days i have been watching your videos every morning, with a coffee, like a tradition :) Thank you very much, this is the best django tutorial playlist that doesn't cover only beginner stuff like many other channels. When you create a paid course or a paid way to provide more access to you in order to ask questions and solve dev challenges, please let me know!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Tomislav! Much appreciated, glad you like the content.
@troelsfries5672
@troelsfries5672 Жыл бұрын
I just want to give you a shout-out and say thanks for all the awesome Django videos you've been putting out. Your voice is delightful, and your editing is on point. I'm sure that many of us want you to know that we appreciate your hard work and dedication to helping people. Keep inspiring others to become better programmers. Please. Also, some Azure cloud could be interesting. I just have this nagging feeling that Microsoft will leave everybody behind at this point. Cheers!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Troels, that means a lot! Glad you like the content and I'll definitely add some Azure cloud stuff to the to-do list!
@arunima2916
@arunima2916 Жыл бұрын
Well done as always!!
@bugbytes3923
@bugbytes3923 Жыл бұрын
As always, thanks for watching!
@valentino7057
@valentino7057 Жыл бұрын
I am really enjoying this series. Keep up the good work! ohh, and it would be nice to start some ORM series, messages framework with toastr, deploying django project, etc. I would love to watch those series as well.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I have an ORM series that's nearly ready to go, which I'm excited about - I have prepared around 16 videos of content, just need to start recording these. Thank you for your other suggestions and the support!
@valentino7057
@valentino7057 Жыл бұрын
@@bugbytes3923 much love from Philippines!
@seba29
@seba29 Жыл бұрын
very useful content, thanks a lot for sharing man
@bugbytes3923
@bugbytes3923 Жыл бұрын
You’re welcome, and thanks for watching!
@abhishekthorat5908
@abhishekthorat5908 Жыл бұрын
Great work sir!🙏
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you, and thanks for watching!
@VikasJha001
@VikasJha001 6 ай бұрын
Thanks. Helped a lot.
@bugbytes3923
@bugbytes3923 6 ай бұрын
@@VikasJha001 awesome, thanks a lot for commenting!
@farzadmf
@farzadmf Жыл бұрын
Great video, thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you for watching Farzad!
@SOHAILKHAN-iu8fu
@SOHAILKHAN-iu8fu Жыл бұрын
Great Work Sir
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@SOHAILKHAN-iu8fu
@SOHAILKHAN-iu8fu Жыл бұрын
@@bugbytes3923 Thank U Sir,
@SOHAILKHAN-iu8fu
@SOHAILKHAN-iu8fu Жыл бұрын
@@bugbytes3923 Sir Please Make a video on 'Celery and redis' and also on 'Sub query'
@djtoon8412
@djtoon8412 Жыл бұрын
A really great content .Hope you add Django + Linode object storage and other topics like configuring django anymail
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I will look into this. Thanks for watching!
@darraghlynn6907
@darraghlynn6907 Жыл бұрын
Excellent content, thank you so much
@bugbytes3923
@bugbytes3923 Жыл бұрын
Cheers Darragh. Thanks for watching!
@JustinSpryce
@JustinSpryce Жыл бұрын
Great lesson sir
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you as always, Justin!
@sen9ob
@sen9ob 11 ай бұрын
you save my life bro, thanks
@bugbytes3923
@bugbytes3923 11 ай бұрын
Awesome man! Glad it helped.
@MikeSmithgb
@MikeSmithgb Жыл бұрын
Excellent video
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@danielsoto4752
@danielsoto4752 Жыл бұрын
Great video!!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@SOHAILKHAN-iu8fu
@SOHAILKHAN-iu8fu Жыл бұрын
Awsm Video
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks!
@atoprak00
@atoprak00 Жыл бұрын
Thanks, amazing content as always. Recently trying to learn Node.Js and Express.Js, I realized that Django is much more simpler. Data modeling, ORM, routing, middleware etc. Setting them up through a third party package kinda looks tiresome, I wonder why it’s more popular that Django since a lot of cool things are already built in. Maybe it looks harder for me since I just started learning Node.Js, I don’t know. Anyways thanks for the good content, keep it up 👍
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I'm glad you like the content. Node.js has a lot to offer but I find the Python backend web frameworks like Django are best suited to my own needs - especially if you're working with data libraries. The ORM remains my favourite thing about Django, and actually I will start releasing an ORM series soon.
@ajibadeyakubadebare2169
@ajibadeyakubadebare2169 5 ай бұрын
Thank you for this
@bugbytes3923
@bugbytes3923 5 ай бұрын
You're welcome! Thanks for watching
@bbbbbsssssfffff
@bbbbbsssssfffff 11 күн бұрын
Great!
@bugbytes3923
@bugbytes3923 5 күн бұрын
Thank you!
@U_Lambda
@U_Lambda Жыл бұрын
If I have a Django app running on Vercel, what would be the correct option to select for the access keys?
@shubhamjha5738
@shubhamjha5738 Жыл бұрын
Signed url is also publicly accessible, how can i limit it's access inside my vpc only or a particular ec2 instance
@OliverBajusz
@OliverBajusz 10 ай бұрын
Thanks for the video! Great walkthrough and explanation! Do you happen to have a solution for staticfiles too in a similar way? Problems are arising from accessing them from S3 or CloudFront as for example fonts are imported from a CSS file and these urls won't be signed.
@annihilationHaven
@annihilationHaven Жыл бұрын
I'm stuck on how to serve the urls from within the CSS stylesheets. All of those images are not rendering.
@concepttechnologies
@concepttechnologies 5 ай бұрын
thank you so much, everything works just well on my code, pls can you do a video on how to deploy django app on ec2 instance
@bugbytes3923
@bugbytes3923 5 ай бұрын
@@concepttechnologies thank you! I’ll try to do this video soon, for sure!
@dodokwak
@dodokwak Жыл бұрын
Thanks!
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome, and thank you for watching!
@zakchips
@zakchips 11 ай бұрын
Thank you very much. I use aws s3 for my media files and it works fine. For static though I use bundle built by webpack ( incl bootstrap that slows loading time down). I'm just wondering what if i counld use CloudFront instead of webpack bundle? Could it be better? Thx in advance.
@amjadalikhan1194
@amjadalikhan1194 Жыл бұрын
Thanks for Lovly videos Please make video on localization. working with bilingual
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you Amjad! I will do some Django localization videos at some point soon.
@RiskSimplifier
@RiskSimplifier Жыл бұрын
Thank you so much..
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks for watching!
@PrashantDas-m1w
@PrashantDas-m1w Жыл бұрын
Thank you for the informative tutorials. Could I ask for your intervention in this matter please. My concern is about media images on AWS S3. I'm able to view them from and save them to S3 when im on localhost everything works well. However when the app is deployed and the website is running live on the internet, I'm only able to view the images that are on S3, but I get the following error while trying to upload images to S3: ClientError at / An error occurred (400) when calling the HeadObject operation: Bad Request at this point in the code: form_instance.save() webite hosted on Vercel via Github DB hosted on Railway. Any input would be of much help, please.
@jairajsahgal7101
@jairajsahgal7101 Жыл бұрын
Thank you
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks for watching!
@beichooo
@beichooo Жыл бұрын
You save my project, thanks a lot. Just one doubt, in the documentation shows a codeline (STORAGES instead DEFAULT_FILE_STORAGE) for django >= 4.2. So when I try with this line my project don't work, but with the django < 4.2, works good, my project has a django 4.2.4, so if anyone can give me an idea for prevent an issue, Im so thank you
@remo6280
@remo6280 Жыл бұрын
I got Error: Missing Key-Pair-Id query parameter or cookie value
@tejender_kumar
@tejender_kumar Жыл бұрын
Hi friend.. Iam uploading images successfully in bucket from django admin model. But not able to load them in template. When im going directly to the link its giving me xml code about access denied. Able to load images only if i allow public access
@bugbytes3923
@bugbytes3923 Жыл бұрын
Hey - have you added your AWS Access/Secret keys to the Django configuration? These should allow access to the bucket if you've set the S3FullAccess permission for the user in AWS IAM. The user who owns those keys needs S3FullAccess permission in order to access the private resources.
@tejender_kumar
@tejender_kumar Жыл бұрын
Yes i did.. see i am able to upload. But not able to access them unless i turned off block public access
@tejender_kumar
@tejender_kumar Жыл бұрын
Amazons3fullaccess permission is given to group and user is added to that group.. is there anything i need to change in order to access s3 object in django view ?
@lexe11
@lexe11 Жыл бұрын
The reason is that bucket region (eu-central-1). They say adding AWS_S3_ADDRESSING_STYLE = 'virtual' to settings does the thing but not in my case. Works with a new bucket on us-east-1 like it should
@jairoruiz8637
@jairoruiz8637 11 ай бұрын
Hi @tejender_kumar , did you find a solution? I'm having the same issue =(
@AmineNouhBenkadi
@AmineNouhBenkadi 5 ай бұрын
There has been some considerable changes to the docs for Django> 4.2 great video though
@bugbytes3923
@bugbytes3923 5 ай бұрын
Thank you! I'll need to check the docs out.
@0730pleomax
@0730pleomax Жыл бұрын
Gold mine
@PrashantDas-m1w
@PrashantDas-m1w Жыл бұрын
fail != file
@bugbytes3923
@bugbytes3923 Жыл бұрын
Very true 😂
@jahanasultan
@jahanasultan Жыл бұрын
Very helpful! Thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome! Thank you for watching!
NodeJs How to upload Files + uploading to AWS S3 using Express, Multer
1:16:31
Sanjeev Thiyagarajan
Рет қаралды 48 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Provision a PostgreSQL database on AWS for Django
21:56
Cloud With Django
Рет қаралды 8 М.
What if all the world's biggest problems have the same solution?
24:52
AWS re:Invent 2023 - Dive deep on Amazon S3 (STG314)
51:25
AWS Events
Рет қаралды 14 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН