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!
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 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 ?
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!
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!
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!
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.
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!
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 👍
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.
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.
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.
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.
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
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
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.
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 ?
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
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!
Thanks a lot! Glad to hear you got it working with Django 5.
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.
Glad it could help!
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 !!
@@israasalameh6879 thanks for watching - glad to hear the video was helpful!
@@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 ?
Hey, buddy . Your videos are vey very helpful, cheers mate, Really enjoy watching them. God bless u
Thanks a lot, that's amazing to hear! All the best!
You are very very very good at explaining all this. Have loved your videos since you've been making them. Thank you.
Thanks a lot for that comment, really appreciate the kind words! Thanks for watching!
Awesome content. Would love to see more Django + AWS stuff in the future.
Thanks Kevin. I'll definitely do some more soon!
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!
Awesome to hear - thanks a lot man!
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!
Thanks a lot Tomislav! Much appreciated, glad you like the content.
Thanks man. This tutorial almost answer my all questions regarding s3. Remaining i will ask after doing few experiments 😊
Awesome! Good luck and thanks for watching :)
A real great content ! Awesome. Thank you so much Master 🙌🏾
Thanks very much! Hope it was useful.
Great video, thank you!
Thank you for watching Farzad!
Great lesson sir
Thank you as always, Justin!
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!
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!
Well done as always!!
As always, thanks for watching!
Thanks. Helped a lot.
@@VikasJha001 awesome, thanks a lot for commenting!
A really great content .Hope you add Django + Linode object storage and other topics like configuring django anymail
Thank you! I will look into this. Thanks for watching!
Great work sir!🙏
Thank you, and thanks for watching!
Great video!!
Thanks a lot!
Excellent video
Thanks a lot!
Excellent content, thank you so much
Cheers Darragh. Thanks for watching!
you save my life bro, thanks
Awesome man! Glad it helped.
Great Work Sir
Thank you!
@@bugbytes3923 Thank U Sir,
@@bugbytes3923 Sir Please Make a video on 'Celery and redis' and also on 'Sub query'
very useful content, thanks a lot for sharing man
You’re welcome, and thanks for watching!
Awsm Video
Thanks!
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.
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!
@@bugbytes3923 much love from Philippines!
Thank you for this
You're welcome! Thanks for watching
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 👍
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.
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.
Thanks!
You're welcome, and thank you for watching!
Thank you so much..
Thanks for watching!
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
@@concepttechnologies thank you! I’ll try to do this video soon, for sure!
Thank you
Thanks for watching!
Thanks for Lovly videos Please make video on localization. working with bilingual
Thank you Amjad! I will do some Django localization videos at some point soon.
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.
If I have a Django app running on Vercel, what would be the correct option to select for the access keys?
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.
Signed url is also publicly accessible, how can i limit it's access inside my vpc only or a particular ec2 instance
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
I'm stuck on how to serve the urls from within the CSS stylesheets. All of those images are not rendering.
Gold mine
There has been some considerable changes to the docs for Django> 4.2 great video though
Thank you! I'll need to check the docs out.
I got Error: Missing Key-Pair-Id query parameter or cookie value
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
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.
Yes i did.. see i am able to upload. But not able to access them unless i turned off block public access
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 ?
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
Hi @tejender_kumar , did you find a solution? I'm having the same issue =(
fail != file
Very true 😂
Very helpful! Thank you!
You're welcome! Thank you for watching!