|
Does it make sense to create only one static files application for different websites? For example, in the static files directory, I would have a subdirectory for different websites. If this were to be done, how would I link the subdirectories of the static files application to the static urls of the websites? |
|
Not really, you could do it, but after adding more sites it makes management harder. It is really up to you however. You would have to edit the application code which defines media URLs to do a custom solution like this. It seems messier to make new static applications for every accompanying application. i.e. my webapps directory will have two folders for every app (<app_name> and static-<app_name>). If this is the best way to do it , I will do it that way. Issues arise when you need to move applications around in the future. Say you want to break up your media and put it on a CDN, but only for 1 site, or you want to use multiple servers on our platform in various configurations, having them separated can make future management of each individual app easier. But, it is completely up to your code/deployment/maintenance style. It has no real technical difference. |