diff hgscm/settings.py @ 78:8d25e34c21c2

templatetags: Add DownloadButton tag to display a download button according to operating system This is somewhat a hacky way to do it, but it works, and we might redo it alter on.
author David Soria Parra <dsp@php.net>
date Fri, 20 Feb 2009 15:12:43 +0100
parents fb737a306703
children 4a8b12498bdf
line wrap: on
line diff
--- a/hgscm/settings.py	Fri Feb 20 15:12:33 2009 +0100
+++ b/hgscm/settings.py	Fri Feb 20 15:12:43 2009 +0100
@@ -73,6 +73,11 @@
     os.path.join(BASE_DIR, "templates"),
 )
 
+TEMPLATE_CONTEXT_PROCESSORS = (
+    'django.core.context_processors.request',
+    'django.core.context_processors.media',
+)
+
 INSTALLED_APPS = (
     'django.contrib.auth',
     'django.contrib.contenttypes',