How to Set Up Cloudflare R2 as a Django Media Storage Backend

Store Django uploads in Cloudflare R2 using boto3 and django-storages. Create a bucket and scoped credentials, configure storage and CORS, then verify an upload. Public delivery and caching need their own deliberate configuration.

By Tai28 min211 views

3 sections · 6 lessons

Sign in free to continue this tutorial, save progress and earn credentials.

What you’ll learn

Explore the topics below. Start the tutorial to open the lessons and save your progress.

1
Provisioning the Bucket2 steps
2
Configuring Django2 steps
3
Verification and CORS2 steps

Related tutorials

More structured learning in Cloud and Infrastructure.