Hacker News new | ask | show | jobs
by larkinrichards 4856 days ago
Good point. Delegating to the storage backend instead of using a STATIC_URL is a don't-repeat-yourself solution.

It's interesting that the CachedStaticFilesStorage will replace urls inside of CSS (as part of the time-stamping), but the standard Storage won't do it to change paths for development/production. As it stands, I use production urls in CSS so that I don't have to change it when I deploy.

1 comments

Using relative paths in your css generally resolves that issue, is there a specific reason that doesn't work in your use case?
No, that's actually what I should be doing here. Thanks for mentioning it!