Am 28.05.2010 um 01:27 schrieb burc...@gmail.com:

> Hi all,
> 
>> - a media files path resolver -- following a similar directory structure as 
>> the app templates loader (<app>/media/<app> vs. <app>/templates/<app>)
>> - build_static -- a mangement command that'll collect media files from apps 
>> from various locations using the media files path resolver and uses a file 
>> storage backend to copy (or link to) the found files (file storage backend 
>> by default), used during deployment
>> - an extended media file serving view that uses the media files path 
>> resolver (in debug mode), backwards compatible replacement for 
>> django.core.servers.basehttp.AdminMediaHandler
> 
> Couldn't agree more. But three more points:
> 1) Media files are linked from applications forms, so what will happen
> if user rename an app?
> Do we need some config piece for this kind of reverse?
> Something like app_media(app_name=None) function and APP_MEDIA?
> 
> 2) More generally, we need per-application settings to handle this
> sort of configuration problems.
> One that will be autodiscovered like templates and admin. And it can
> contain additive variables for MEDIA, like suggested in my
> configuration proposal:
> http://groups.google.com/group/django-developers/browse_thread/thread/b7339d8577567d95

That seems overly complicated for the use case of app media. For the app level 
configuration though, I'd say we should wait a little for the summer of code to 
progress.

> 3) I've seen a solution recently that generates apache and lighttpd
> install scripts, found it much better than symlinks for media in
> production.
> But this one definitely needs additive variables and per-application
> configuration!

In case you mean the django-staticmedia [1] app -- I think it's doing fine 
outside of Django -- given the fact that generating deployment config files 
isn't a core goal of Django.

Jannis


1: http://pypi.python.org/pypi/django-staticmedia

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to