On Sep 16, 10:49 pm, "Rajeev J Sebastian" <rajeev.sebast...@gmail.com>
> A problem would be referencing images, and media in css/js files.CSS can refer to images by their path relative to the CSS file, so if
> Currently, in all our projects we use /site_media/ as the MEDIA_URL,
> so this not a problem. But for a true solution, there should be a
> preprocessor for css/js to use the MEDIA_URL within it.
your media tree looks like:
Then base.css can do: background-image('../images/icon.png')
...so no preprocessing needed there. But referring to *another app's*
> Another problem which we havent solved, is overrides. E.g., when weI imagined this working just like templates. By *convention* apps can
> use a "plugabble"/reusable app with its own media, and we want to
> override this in our project, how should the collect media command
> work ?
lay out their media directories like media/appname. So there's
nothing stopping your app from including, say, media/anotherapp/css/
base.css, and we can say that whichever app is in INSTALLED_APPS first
wins, just like with templates.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.