Changes between Version 4 and Version 5 of CookBookUsingExternalMedia


Ignore:
Timestamp:
Nov 30, 2009, 9:12:35 AM (14 years ago)
Author:
oyvind
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookUsingExternalMedia

    v4 v5  
    2525
    2626{{{
     27#!python
    2728   "django.core.context_processors.media",
    2829}}}
    2930
    30 But if you are still on django 0.96:
     31If you are still on django 0.96:
    3132
    3233Here's a example snippet from a context process:
    3334
    3435{{{
     36#!python
    3537from django.conf import settings
    3638
     
    4042
    4143Then in the settings.py under TEMPLATE_CONTEXT_PROCESSORS, we added:
     44{{{
     45#!python
    4246   "mysite.context_processors.common",
     47}}}
    4348
    4449and from there, the MEDIA_URL in settings.py became available in all templates as {{ MEDIA_URL }}.
Back to Top