bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 425 forks source link

How to create tenant_schemas.storage.TenantFileSystemStorage within AWS s3 bucket with django-storages 1.12.3 #676

Open mn-48 opened 2 years ago

mn-48 commented 2 years ago

According django tenant_schema doc and django storages doc . Those two package recomendate use same variable named DEFAULT_FILE_STORAGE within settings.py

How to create TenantFileSystemStorage in ASW s3 bucket storage.

# for TenantFileSystemStorage
DEFAULT_FILE_STORAGE = 'tenant_schemas.storage.TenantFileSystemStorage'
# for s3 bucket 
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'