Cloudflare for Devs Part 1: R2 with Django for Static files, user uploads, css, images, js and more.

Cloudflare for Devs Part 1: R2 with Django for Static files, user uploads, css, images, js and more.

5.933 Lượt nghe
Cloudflare for Devs Part 1: R2 with Django for Static files, user uploads, css, images, js and more.
Learn how to implement production-ready hosting for your static files and user file uploads. In this one we only use: - Cloudflare R2 - Django 5 (4.2+) - django-storages - python-decouple Thank you to Cloudflare for sponsoring this one! Be sure to sign up at https://cloudflare.com/?utm_source=youtube&utm_medium=social&utm_campaign=codingentrepreneurs Cloudflare for Devs: Part 1 (this): https://youtu.be/VU3MAN1gs1s Part 2: https://youtu.be/3SoGyiiFkgQ 🚀 Enroll now on https://cfe.sh/enroll 🚀 💽 Code: https://github.com/codingforentrepreneurs/django-cloudflare-r2 00:00:00 Welcome 00:03:17 Start new Django Project from Scratch 00:08:51 Configure Cloudflare R2 Bucket and API Keys 00:15:58 Loading Sensitive Keys with python-decouple 00:20:20 Default django-storages Configuration 00:25:31 Customize the Bucket Location for Files 00:33:02 Handle User Upload with Django FileField and ImageField 00:44:25 Thank you and next steps