sime wrote: > Adrian seems to think it's feature creep. But how else are we supposed > to link media without access to MEDIA_URL?
To answer directly: by using get_FIELD_url() methods of models. Media directory is primarily intended to keep files that are uploaded into FileFields and automatically placed inside of MEDIA_ROOT. But I suppose that you are talking about using MEDIA_URL to access CSS and JS files, right? If yes then it's not what everyone does. Many people keep CSS and JS under source control in a place that has nothing to do with a directory for user uploads. So why expose MEDIA_URL in templates? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
