On Sep 20, 6:58 am, Erik Allik <[EMAIL PROTECTED]> wrote:
> Has anyone got some good use cases where the template-loaded mimicking  
> behavior would be desired? Otherwise it's just needless complexity in  
> my opinion.

Well, first of all, it's not really complexity at all.  If it were to
just copy all the media files found, the last app in INSTALLED_APPS
would overwrite the others with the same name.  This way, the first
app in INSTALLED_APPS wins instead of the last one.  That's the only
difference.

And the use case is of course to customize the style of a reusable app
without modifying the actual files distributed with the app (which
would make it a pain when upgrading).  batchadmin[1], for example --
if you want to change the style of the batch action form, like to make
it pink, just provide a file in your app named media/css/
batchadmin.css, just like you would provide a template at templates/
batchadmin/actions.html if you wanted to change the markup.

[1]: http://code.google.com/p/django-batchadmin/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to