Skip to content

Use Django's system check framework instead of log message #153

@jnns

Description

@jnns

When using django-s3-storage together with Cloudflare R2 there are no public buckets. You'll need a so-called Worker to proxy the public requests to the private bucket.

In this setup, you'll need to set AWS_S3_PUBLIC_URL = <your_worker_route> and AWS_S3_BUCKET_AUTH = True. This works perfectly fine but issues a warning each time a django-admin command is used:

Using AWS_S3_BUCKET_AUTH with AWS_S3_PUBLIC_URL. Private files on S3 may be inaccessible via the public URL. See #114

I'd like to silence this particular log message and it seems to me that Django's Sytem Check Framework would be the ideal use case for this scenario. SILENCED_SYSTEM_CHECKS could then be used to silence the check for those who don't need to be reminded of it.

If you agree that this would be useful, I'd write a patch for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions