Code

Ticket #2532: context_processor-media_url.diff

File context_processor-media_url.diff, 397 bytes (added by dummy@…, 8 years ago)

django.core.content_processor.media_url

Line 
1Index: django/core/context_processors.py
2===================================================================
3--- django/core/context_processors.py   (Revision 3570)
4+++ django/core/context_processors.py   (Arbeitskopie)
5@@ -42,6 +42,9 @@
6 
7     return context_extras
8 
9+def media_url(request):
10+    return {'media_url': settings.MEDIA_URL }
11+
12 def request(request):
13     return {'request': request}
14