django-insert-above is a Django app that contains a hack making possible to insert 'content' in some (maybe above the current or parent template) places.
More specifically, when we use these tags, there are some Nodes called 'containers' that are rendered after all other nodes are rendered, but placed in it's right posistion. Using this hack, 'containers' may render depending on variables in context that were generated by nodes placed anywhere in template (maybe after it).
MOTIVATION
1. Create convenient way to include media resources in head of HTML page.
2. Handle repetition of resource includes.
3. Make it possible to require resources from included templates.
4. Keep the order of resource includes from different places.
INSTALL
1. (required) add 'insert_above' in INSTALLED_APPS in your settings.py
2. (optional) add these two lines of code somewhere in your project where
they will run for sure. For example in urls.py
from django.template.loader import add_to_builtins
add_to_builtins('insert_above.templatetags.insert_tags')
Product's homepage
Requirements:
· Python
· Django
What's New in This Release: [ read full changelog ]
· added new tag `{% insert_form container form %}`
· added new tag `{% insert_form container form.media %}`