Book Image

Django 1.0 Template Development

Book Image

Django 1.0 Template Development

Overview of this book

Table of Contents (17 chapters)
Django 1.0 Template Development
Credits
About the Author
About the Reviewers
Preface
Index

Index

A

  • add filter
    • using /
    • example /
  • addslashes filter
    • applying /
  • admin color schemes
    • customizing /
  • admin color schemes, customizing /
    • styles, identifying /
    • page elements, modifying /
    • extrastyle block, using /
  • admin dashboard
    • new link box, adding /
  • admin header
    • customizing /
  • admin header, customizing /
    • page tittle, replacing /
    • text, changing /
  • admin template, exploring
    • base.html template /
    • base_site.html template /
    • change_list.html template /
    • change_form.html template /
    • index.html template /
    • base.html template, inspecting /
    • base_site.html template, inspecting /
    • index.html template, inspecting /
    • change_list.html template, inspecting /
    • change_form.html template, inspecting /
  • admin template, overriding
    • structure, exploring /
    • template loader, leveraging /
    • files, locating /
    • exploring /
  • application, creating
    • data model, creating /
    • admin file, creating /
    • URLs, configuring /
    • admin data, adding /
  • application setup
    • verfying /
    • application, verifying /
    • configuration, verifying /
    • URL configuration, verifying /
    • model, verifying /
    • view, verifying /
    • test records, adding /
  • approaches
    • considering /
    • mobile devices, serving /
    • mobile devices, shortcomings /
    • content adaption /
  • app_directories loader, template loaders
    • using /
    • advantage /
    • disadvantage /
  • autoescape tag
    • about /
    • using /
  • automatic language preference

B

  • blocks
    • appending /
    • strategies /
    • content placeholders, placing /
  • block tag
    • using /
    • example /
  • built-in filters
    • reviewing /
  • built-in filters, reviewing
    • template filters /
    • template tags /
  • built-in tags
    • reviewing /

C

  • cache backend, cache systems
    • configuring /
    • database caching /
    • filesystem caching /
    • local memory caching /
    • dummy caching /
    • Memcached /
  • cache systems
    • implementing /
    • setting up /
  • cache systems, exploring
    • about /
    • options /
    • filesystem caching /
    • database caching /
    • Memcached /
    • local memory caching /
    • dummy caching /
  • cache systems, setting up
    • cache backend, configuring /
    • additional backened arguments, adding /
    • for examples /
  • caching
  • caching, individual views
    • adding, to view /
  • caching, strategies
  • capfirst filter
    • using /
    • applying /
  • center filter
    • using /
    • requirements /
    • applying /
  • comment tag
    • using /
    • example /
  • content placeholders, blocks
    • placing /
    • extra_js block /
    • extra_style block /
    • extra_head block /
    • extra body tag attributes /
  • context
    • about /
    • using /
    • experimenting with /
    • working with /
    • locals, using for prototyping /
    • items, adding /
    • items, changing /
    • items, removing /
  • context processors
    • about /
    • default context processors, exploring /
    • project, configuring /
    • views, configuring /
    • render_to_response, using with RequestContext /
    • using, in project /
    • writing /
  • context rendering shortcuts
    • render_to_response(), using /
    • render_to_string(), using /
  • context values
    • using, in templates /
    • method execution, preventing /
    • invalid context variables, handling /
    • view, cleaning up /
  • cut filter
    • using /
    • applying /
  • cycle tag
    • using /
    • example /

D

  • date filter
    • using /
    • applying /
  • debug tag
    • about /
    • example /
  • default context processors, context processors
    • exploring /
    • Auth /
    • Debug /
    • Media /
    • il8n /
  • default filter
    • using /
    • applying /
  • default_if_none filter
    • applying /
  • demo application
    • creating /
  • demo application, creating /
    • Django framework, testing /
    • Django framework, installing /
    • database, creating /
    • project directory, creating /
    • project, starting with /
    • installation, testing /
    • project's setting, configuring /
    • application, starting with /
    • templates, adding to application /
  • dictsort filter
    • using /
    • applying /
  • divisibleby filter
    • using /
    • applying /
  • Django
    • request handle, exploring /
    • overview /
    • include files, using /
  • Django template system
    • overview /
    • code from presentation, separating /
    • designers and developers collaboration /
    • maintainability, increasing /
    • syntax /
    • modularity /
    • reusability /
    • flexibility /
    • limitations /
    • critics /
  • Django template system syntax /
    • example /
    • context variable /
    • variables /
    • filters /
    • tags /
    • comments /
    • comments, single-line comments /
    • comments, multi-line comments /
    • code note /
    • variables, handling /

E

  • eggs template loader, template loaders
    • about /
  • entire site caching
  • error handling templates
    • setting up /
    • 404.html files /
    • 505.html files /
    • creating /
    • testing /
  • escape filter
    • using /
    • applying /
  • escapejs filter
    • using /
    • applying /
  • extends tag
    • using /
    • example /

F

  • filesizeformat filter
    • using /
    • applying /
  • filesystem loader, template loaders
    • using /
    • example /
  • filter
    • about /
    • upper filter /
    • add filter /
    • addslashes filter /
    • capfirst filter /
    • center filter /
    • cut filter /
    • date filter /
    • default filter /
    • default_if_none filter /
    • dictsort filter /
    • dictsortreversed filter /
    • divisibleby filter /
    • escape filter /
    • escapejs filter /
    • filesizeformat filter /
    • first filter /
    • fix_ampersands filter /
    • floatformat filter /
    • force_escape filter /
    • get_digit filter /
    • iriencode filter /
    • join filter /
    • last filter /
    • length filter /
    • length _is filter /
    • linebreaks filter /
    • linebreaksbr filter /
    • linenumbers filter /
    • Ijust filter /
    • lower filter /
    • make_list filter /
    • phone2numeric filter /
    • pluralize filter /
    • pprint filter /
    • random filter /
    • removetags filter /
    • rjust filter /
    • safe filter /
    • slice filter /
    • slugify filter /
    • stringformat filter /
    • striptags filter /
    • time filter /
    • timesince filter /
    • timeuntil filter /
    • title filter /
    • truncatewords filter /
    • truncatewords_html filter /
    • unordered_list filter /
    • urlencode filter /
    • urlize filter /
    • urlizetrunc filter /
    • wordcount filter /
    • wordwrap filter /
    • yesno filter /
  • filter tag
    • about /
    • using /
    • example /
  • first filter
    • using /
    • applying /
  • firstof tag
    • using /
  • fix_ampersands filter
    • using /
    • applying /
  • floatformat filter
    • using /
    • applying /
  • for loop, for tag
    • properties /
    • example /
  • for tag
    • using /
    • example /
    • for loop /

G

  • generic views pagination
    • about /
    • view list, setting up /
    • last page, calling generically /
  • get_digit filter
    • using /
    • applying /

I

J

  • join filter
    • using /
    • applying /

L

  • last filter
    • using /
    • applying /
  • length filter
    • using /
    • applying /
  • length_is filter
    • using /
    • applying /
  • linebreaksbr filter
    • applying /
  • linebreaks filter
    • using /
    • applying /
  • linenumbers filter
    • using /
    • applying /
  • load tag
    • using /
    • example /
  • lower filter
    • using /
    • applying /

M

N

  • new link box, admin dashboard
    • adding /
    • admin index file, overriding /
    • include file, creating /
  • now tag
    • using /
    • string values /
    • example /

O

P

  • pagination, exploring
    • django shell used /
    • database performance, examining /
    • empty objects list, allowing /
    • orphaned records, preventing /
  • pagination, using
    • view, creating /
    • current position fromURL, retrieving /
  • paginator library
    • importance /
    • implementing /
  • phone2numeric filter
    • using /
    • applying /
  • pluralize filter
    • using /
    • applying /
  • pprint filter
    • using /
    • applying /
  • printable page
    • serving /

R

  • random filter
    • using /
    • applying /
  • regroup tag
    • using /
    • example /
    • list key /
    • grouper key /
  • removetags filter
    • using /
    • applying /
  • request handle, Django
    • exploring /
    • URL, requesting /
    • middleware, calling /
    • URL, evaluating /
    • middleware, calling(again) /
    • view, calling /
    • template object, loading /
    • template file, loading /
    • template, rendering /
    • output, sending to browser /
  • rjust filter
    • using /
    • applying /

S

  • safe filter
    • using /
  • simple generic views, views
    • template, loading directly /
    • URLs, redirecting /
  • sites
    • serving. with different web servers /
    • settings file, cloning /
    • mobile template, creating /
    • development web server, configuring /
  • site themes
    • creating /
    • template override, creating /
    • template override, testing /
  • slice filter
    • using /
    • applying /
  • slugify filter
    • applying /
  • spaceless tag
    • using /
    • example /
  • SSI
    • about /
  • ssi tag
    • using /
    • key differenced /
    • example /
  • stringformat filter
    • using /
    • applying /
  • striptags filter
    • using /
    • applying /

T

  • tag
    • about /
    • using /
    • autoescape tag /
    • block tag /
    • comment tag /
    • cycle tag /
    • debug tag /
    • extends tag /
    • filter tag /
    • firstof tag /
    • for tag /
    • if tag /
    • ifchanged tag /
    • ifequal tag /
    • ifnotequal tag /
    • include tag /
    • load tag /
    • now tag /
    • regroup tag /
    • spaceless tag /
    • ssi tag /
    • templatetag /
    • url tag /
    • widthratio tag /
    • with tag /
  • template
    • navigation, building /
  • template filter
    • writing /
  • template filter, writing /
    • test application, setting up /
    • temlatetags, creating /
    • template filter syntax /
    • template filter syntax, example /
    • template libraries, loading /
    • U.S.currency filter /
    • replace profanities filter /
    • string expecting filter /
    • in-list filter /
  • template loaders
    • templates, loading manually /
    • choosing /
    • filesystem loader, using /
    • app_directories loader, using /
    • eggs template loader /
    • multiple loaders, using /
    • templates, retrieving /
    • get_template method /
    • select_template method /
  • templates
    • about /
    • need for /
    • requirements /
    • template inheritance /
    • extending, with inheritance /
    • blocks, creating /
    • block tag, using /
    • block tags, example /
    • extending /
    • extends tag /
    • press application, adding inheritance /
    • multiple block tags, using /
    • press release list, adding inheritance to /
    • serving, bydomain name /
  • templates, demo application
    • adding to application /
    • variables, adding to view /
    • logic, moving into separate template file /
    • filters, using /
    • tags, using /
    • comments, adding /
  • template system
    • configuration /
    • directories used /
  • template system, configuration settings
    • DEBUG /
    • DEBUG, example /
    • TEMPLATE_DEBUG /
    • TEMPLATE_LOADERS /
    • TEMPLATE_DIRS /
  • templatetag
    • using /
    • characters /
    • arguments /
  • template tags
    • another sample application, creating /
    • template library, adding /
    • template tag syntax /
    • simple tag example /
    • compilation function /
    • template node subclass /
    • custom tag, registering /
    • all work and no play tag /
    • variable, passing to tag /
    • context, modifying /
  • template tags, writing /
  • timesince filter
    • using /
    • applying /
  • title filter
    • using /
    • applying /
  • truncatewords filter
    • using /
    • applying /
  • truncatewords_html filter
    • using /
    • applying /

U

  • unordered_list filter
    • using /
    • applying /
  • upper filter
    • applying /
  • urlencode filter
    • using /
    • applying /
  • urlize filter
    • using /
    • applying /
  • urlizetrunc filter
    • using /
    • applying /
  • URLs
    • mapping, to views /
    • unmatched URL pattern, handling /
    • URLconfigurations, splitting up /
  • url tag
    • using /
    • example /

V

  • views
    • rules /
    • generic views, using /
    • generic views, types /
    • generic views, comparing with /
  • views, combining
    • basic view, building /
    • error handling, cleaning up /
    • template files, handling /
    • template, adding to view /
    • list view, creating /
    • templates, creating /
    • simple generic views /
    • list view, replacing /
    • detail view, replacing /
    • other generic views, using /
  • views, creating
    • request object, accepting /
    • responding, with HTTP response /
    • responding, with exception /

W

  • widthratio tag
    • using /
    • example /
  • with tag
    • using /
    • example /
  • wordcount filter
    • applying /
  • wordwrap filter
    • using /
    • applying /

Y

  • yesno filter
    • using /
    • applying /