Replies: 1 comment
-
I did created a setting in my settings.py like `TENANT_STORAGE_FOLDER = 'tenant_storage' And then in the models for files i did this: `class AbstractFile(models.Model):
I'm using Azure Storage Account as storage backend, I tried to use a different container for each tenant but could not figure it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am implementing multitenant in a django project with PostgreSQL for this I implemented a library called django-tenants but I have a small problem what I wanted was to save the media files for each scheme in a folder with the same name of the scheme for it In the official documentation it indicated that I had to put this configuration in my settings.py.
I have an example model
But when I save a record, a folder with the name of the current scheme is created in the media along with the image, but in my database the image is saved without the name of the scheme, that is.
How could I solve this? I have searched for different ways but have not been able to achieve it.
Beta Was this translation helpful? Give feedback.
All reactions