Kevin Howerton wrote: > The widget and admin media system needs to be re-evaluated IMO.... > none of these solutions are going to address the flaws you are > referring to. > "Flaws", sounds a bit harsh :P Let's alias that as "room for improvement". I'd agree that wrangling hashes and compressing assets at run-time is undesirable, and that a management command is preferable. There's a bit of conflict between what I crave, and the compress-everything-ahead-of-time tactic though. Actually... I take that back - following Gabriel's train of though, we could probably have it both ways.
Since my goals are somewhat smaller (in some ways), I've started thinking about ways to implement what I want (some kind of "global" stack of client-side resources) that won't require sticking my fingers in the django source. At least not yet. Here's kind of what I'm thinking about: http://dpaste.org/Pjk5/ (Sorry, the naming is all a bit clunky - that was just off the top of my head) Extending something simple like that with some template tags, and stringing it all together with some middleware. This would give us a way to pool scripts together under one framework instance, also allowing us to dynamically add (from views and templates) them to the framework container throughout the life cycle of a request and response. I think I might be able to run some tests in a custom app - then start experimenting with the admin site. Once I've got all that setup, it should be a snap to add compression/concatenation somewhere along the pipeline, either at runtime or via a management command. Obviously, this is all very jQuery specific (where most of my javascript experience lies). I'd love to hear from someone on team dojo, prototype, yui, or extjs to learn about what doesn't fit with this model. -- 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.