Hi,
maybe django-sekizai (
https://github.com/ojii/django-sekizai) might help
you out. It let's you define blocks (especially for javascript and css)
in subtemplates and takes care that no entry is doubled.
The docs are here:
http://django-sekizai.readthedocs.org/en/latest/
We use it in a current project and with some fiddeling it even works
with django-compressor.
Hth
with best regards
Carsten Reimer
> But according to the docs, include �render this subtemplate and include
> the HTML�.
>
> And these sub templates have common js scripts because I'm trying to
> keep them independent so that I can reuse the forms in other places in
> my app.
>
> 1. I can't seem to modularize my template/forms using include statement
> and have them loaded at the end of the page using the block tag.
>
> 2. How to avoid the duplication?
>
> What should the right approach to solve the problems?
>
>
> Thanks!
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
django-users...@googlegroups.com.
> To post to this group, send email to
django...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/django-users?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Carsten Reimer
Web Developer
carsten...@galileo-press.de
Phone
+49.228.42150.703
Galileo Press GmbH
Rheinwerkallee 4 - 53227 Bonn - Germany
Phone +49.228.42150.0 (Zentrale) .77 (Fax)
http://www.galileo-press.de/
Managing Directors: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker
HRB 8363 Amtsgericht Bonn