Changes between Version 1 and Version 2 of Ticket #30344, comment 3


Ignore:
Timestamp:
Apr 11, 2019, 4:02:15 PM (6 years ago)
Author:
Tom Turner

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30344, comment 3

    v1 v2  
    22
    33
    4 I will now give more details why I wanted this patch. I am the maintainer of a project called Django Tenants http://github.com/tomturner/django-tenants which allows you to have tenants in Django ie a.mydomain.com and b.mydomain.com. The problem I have is that on the different domains I want to serve different static files. The problem is I cant pick up the domain and set the correct tenant for static files. I believe this could do this easier if the serve static is class based. Making the serve static class base will not affect users of Django and I know a lot of other areas in Django have been converted to class base views such as the admin
     4I will now give more details why I wanted this patch. I am the maintainer of a project called Django Tenants http://github.com/tomturner/django-tenants which allows you to have tenants in Django ie a.mydomain.com and b.mydomain.com. The problem I have is that on the different domains I want to serve different static files. The problem is I cant pick up the domain and set the correct tenant for static files. I believe this could be doe easier if the serve static is class based. Making the serve static class base will not affect users of Django and I know a lot of other areas in Django have been converted to class base views such as the admin
    55
    66I believe one could override the entry point with something like this in the url
Back to Top