Changes between Version 85 and Version 86 of IrcFAQ


Ignore:
Timestamp:
09/15/08 06:12:32 (6 years ago)
Author:
Kellen
Comment:

updating media_url section and rewrite wrt 1.0

Legend:

Unmodified
Added
Removed
Modified
  • IrcFAQ

    v85 v86  
    200200== Do I have to hard-code my media URL in all my templates for CSS, images and Javascript? == #MediaURL
    201201
    202 No; you can use {{{{{ MEDIA_URL }}}}}. If you're using the development version of django and generic views, you can use {{{{{ MEDIA_URL }}}}} without changing anything.
    203 
    204 If you're using the development version and render_to_response(), you'll have to include RequestContext, as described here: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
    205 
     202No; you can use {{{{{ MEDIA_URL }}}}}. If you're using generic views, you can use {{{{{ MEDIA_URL }}}}} without changing anything.
     203
     204If you're using render_to_response(), you'll have to include RequestContext, as described here: http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext
    206205
    207206If you're using 0.96, you can get the same functionality by creating a template context processor, as described: http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/
     
    259258
    260259Yes, it's very handy -- see DjangoBot for more.
    261 
Back to Top