Product Details

django-representations 0.1

 

Advertisement


This is a simple template tag that selects a template based on the content type of the model passed to it.This presents a convention that allows models to be displayed in certain waysFor instance, for a list of blog entries:diario/entry_archive_day.
django-representations is a completely free software. You can free download and use it as long as you like.


 

Django templatetag for representing models

This is a simple template tag that selects a template based on the content type of the model passed to it.This presents a convention that allows models to be displayed in certain waysFor instance, for a list of blog entries:diario/entry_archive_day.html ... {% represent entry as "summary.html" %}diario/entry_archive.html ... {% represent entry as "summary.html" %}diario/entry_detail.html ... {% represent entry as "detail.html" %}Each template is placed in representations/diario.entry/The power of this convention is revealed when you do something like a search engine that may be a list of different content types:{% for object in search_result_list %}{% represent object as "search_result.html" %}{% endfor %}#md5=0796cabbf65126c57c80ef0c06290209

(512k) < 1 sec
(1Mb) < 1 sec
(2Mb) < 1 sec
(5Mb) < 1 sec
(10Mb) < 1 sec

User Reviews: DJANGO-REPRESENTATIONS 0.1
 * 
 * 
     
 * 
related terms
Related Software
Similar Download Catalog
 
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z