Distributing media with apps could be a lot easier. Currently this requires copying or linking files manually (possibly each time the app is updated), and this encourages developers to put CSS and JavaScript inline in their templates. I propose a management command to make this easier:
$ python manage.py installmedia appname [appname ...] The command is "dumb." It goes like this: - Read MEDIA_ROOT from settings.py. - Look for a 'media' directory in the app. - Copy or link everything in there to MEDIA_ROOT. This simple command saves you quite a bit of typing. Some possibilities... - Switches like --copy, --link, --overwrite, etc. - Just like with templates, it could become best practice for apps to have their media structured like so: media/ media/appname/ media/appname/css/ ... - Or in the simple case: media/ media/css/appname.css media/css/appname.js This should make it easier for apps to make assumptions about where their media is located relative to MEDIA_URL (this is currently ad hoc). Thoughts? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---