Hi,

On 8 Apr., 09:03, jurian <[EMAIL PROTECTED]> wrote:
> I like that concept.
>
> How does one go about including media files required for an
> application to function then?
> (I don't really know how to do this in the project/app configuration
> either)

Unfortunately, there is no standard way to do it. In our projects we
simply put 'media' folders in each app and when developing we map
those folders with django.views.static.serve (e.g., app media folders
to server.com/media/<app> and the global media folder to server.com/
media/global). In the templates we provide a media_url() function that
maps the given file to the correct media path, depending on whether
we're on the production server or the dev environment. E.g., this
allows for putting the media files on an S3 node for the production
environment while using the local runserver when developing.

Most of this can be automated (scanning installed apps for media
folders, generating urlpatterns, etc.) and IMHO Django should provide
a standard mechanism to do this.

Bye,
Waldemar Kornewald
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to