bernardopires / django-tenant-schemas

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

Serving REST back, no storage aware in image path. #593

Open soap opened 5 years ago

soap commented 5 years ago

I am coding multi-tenancy project using DTS and Django-tenant-users with REST. Angular 7 is used as client. I configured storage to be tenant aware and upload work fine! They are separated by tenant domain. But when I request REST record back from server using public end point. In the path there is no tenant domain.

It should /media//uploads/page/image1.png. I got /media/uploads/page/image1.png.

I think this is because REST get data from database and did not know about the tenant aware storage.

Any suggestion? I just work around the problem now.