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

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 89

  • @Khaled-fo7tr
    @Khaled-fo7tr Месяц назад +1

    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  Месяц назад

      Thanks a lot! Glad to hear you got it working with Django 5.

  • @keinermendoza4631
    @keinermendoza4631 8 дней назад +1

    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.

  • @israasalameh6879
    @israasalameh6879 3 месяца назад +2

    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  3 месяца назад

      @@israasalameh6879 thanks for watching - glad to hear the video was helpful!

    • @israasalameh6879
      @israasalameh6879 3 месяца назад

      @@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 14 дней назад +1

    Hey, buddy . Your videos are vey very helpful, cheers mate, Really enjoy watching them. God bless u

    • @bugbytes3923
      @bugbytes3923  14 дней назад

      Thanks a lot, that's amazing to hear! All the best!

  • @sprue_goose
    @sprue_goose 8 месяцев назад +1

    You are very very very good at explaining all this. Have loved your videos since you've been making them. Thank you.

    • @bugbytes3923
      @bugbytes3923  8 месяцев назад

      Thanks a lot for that comment, really appreciate the kind words! Thanks for watching!

  • @KM98120
    @KM98120 Год назад +5

    Awesome content. Would love to see more Django + AWS stuff in the future.

    • @bugbytes3923
      @bugbytes3923  Год назад +1

      Thanks Kevin. I'll definitely do some more soon!

  • @victoralexandre9653
    @victoralexandre9653 6 месяцев назад +1

    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  6 месяцев назад

      Awesome to hear - thanks a lot man!

  • @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.

  • @tejender_kumar
    @tejender_kumar Год назад +1

    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 Год назад +2

    A real great content ! Awesome. Thank you so much Master 🙌🏾

    • @bugbytes3923
      @bugbytes3923  Год назад +1

      Thanks very much! Hope it was useful.

  • @farzadmf
    @farzadmf Год назад +1

    Great video, thank you!

  • @JustinSpryce
    @JustinSpryce Год назад +1

    Great lesson sir

  • @troelsfries5672
    @troelsfries5672 Год назад +2

    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  Год назад +1

      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 Год назад +1

    Well done as always!!

  • @VikasJha001
    @VikasJha001 4 месяца назад +1

    Thanks. Helped a lot.

    • @bugbytes3923
      @bugbytes3923  4 месяца назад

      @@VikasJha001 awesome, thanks a lot for commenting!

  • @djtoon8412
    @djtoon8412 Год назад +1

    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!

  • @abhishekthorat5908
    @abhishekthorat5908 Год назад +1

    Great work sir!🙏

  • @danielsoto4752
    @danielsoto4752 Год назад +1

    Great video!!

  • @MikeSmithgb
    @MikeSmithgb Год назад +1

    Excellent video

  • @darraghlynn6907
    @darraghlynn6907 Год назад +1

    Excellent content, thank you so much

    • @bugbytes3923
      @bugbytes3923  Год назад

      Cheers Darragh. Thanks for watching!

  • @sen9ob
    @sen9ob 9 месяцев назад +1

    you save my life bro, thanks

    • @bugbytes3923
      @bugbytes3923  9 месяцев назад

      Awesome man! Glad it helped.

  • @SOHAILKHAN-iu8fu
    @SOHAILKHAN-iu8fu Год назад +2

    Great Work Sir

  • @seba29
    @seba29 Год назад +1

    very useful content, thanks a lot for sharing man

    • @bugbytes3923
      @bugbytes3923  Год назад

      You’re welcome, and thanks for watching!

  • @SOHAILKHAN-iu8fu
    @SOHAILKHAN-iu8fu Год назад +2

    Awsm Video

  • @valentino7057
    @valentino7057 Год назад +1

    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  Год назад +1

      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!

  • @ajibadeyakubadebare2169
    @ajibadeyakubadebare2169 2 месяца назад

    Thank you for this

    • @bugbytes3923
      @bugbytes3923  2 месяца назад

      You're welcome! Thanks for watching

  • @atoprak00
    @atoprak00 Год назад +1

    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  Год назад +1

      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.

  • @OliverBajusz
    @OliverBajusz 8 месяцев назад

    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.

  • @dodokwak
    @dodokwak Год назад +1

    Thanks!

    • @bugbytes3923
      @bugbytes3923  Год назад

      You're welcome, and thank you for watching!

  • @RiskSimplifier
    @RiskSimplifier Год назад

    Thank you so much..

  • @concepttechnologies
    @concepttechnologies 2 месяца назад +1

    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  2 месяца назад

      @@concepttechnologies thank you! I’ll try to do this video soon, for sure!

  • @jairajsahgal7101
    @jairajsahgal7101 Год назад

    Thank you

  • @amjadalikhan1194
    @amjadalikhan1194 Год назад +1

    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.

  • @zakchips
    @zakchips 8 месяцев назад

    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.

  • @U_Lambda
    @U_Lambda 11 месяцев назад

    If I have a Django app running on Vercel, what would be the correct option to select for the access keys?

  • @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.

  • @shubhamjha5738
    @shubhamjha5738 Год назад

    Signed url is also publicly accessible, how can i limit it's access inside my vpc only or a particular ec2 instance

  • @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

  • @annihilationHaven
    @annihilationHaven Год назад

    I'm stuck on how to serve the urls from within the CSS stylesheets. All of those images are not rendering.

  • @0730pleomax
    @0730pleomax Год назад

    Gold mine

  • @AmineNouhBenkadi
    @AmineNouhBenkadi 3 месяца назад

    There has been some considerable changes to the docs for Django> 4.2 great video though

    • @bugbytes3923
      @bugbytes3923  2 месяца назад

      Thank you! I'll need to check the docs out.

  • @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 9 месяцев назад +1

      Hi @tejender_kumar , did you find a solution? I'm having the same issue =(

  • @PrashantDas-m1w
    @PrashantDas-m1w Год назад

    fail != file

  • @jahanasultan
    @jahanasultan Год назад +1

    Very helpful! Thank you!

    • @bugbytes3923
      @bugbytes3923  Год назад

      You're welcome! Thank you for watching!