Hi all,
we recently stumbled on a similar problem, but not specifically
related to (new)forms... we are rendering articles with some boxes
(polls, images, quizes etc.) and some of these boxes need specific
media files to be linked to the page. We put together a simple
mechanism for allowing this (just storing all these in a set in
context), but if it would integrate somehow with things you are
proposing here, it would be great.

Perhaps a simple API, like: context.register_media( PATH )

the only problem I see is that in order for this to work properly from
within templatetags, the template would IMHO have to be ordered in a
way that the media would be included at the very bottom, after all the
other tags have been rendered. Is this possible? what is the order of
evaluating a template and do we want to rely on that?

comments are welcome

On 5/27/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
>
> Russell Keith-Magee wrote:
> > URL path. When rendered, it should take into account settings.MEDIA_URL.
>
> As a matter of fact it's not a universal practice to have css and js
> filed under this root. A couple of my projects had them in separate
> places (even js separate from css). It can be handled as simple as
> checking if Widget's media() (or a Meta-class) already contain an
> absolute links and only if they don't the join it with MEDIA_URL.
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to