2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 22:37:06 +00:00

quick hack to make work in django1.0 Photo to DPhoto

This commit is contained in:
goatchurch
2009-08-23 23:29:05 +01:00
parent e4496e4cd8
commit 20eac2d04b
6 changed files with 12 additions and 11 deletions

View File

@@ -10,7 +10,8 @@ from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
# Django uses Context, not RequestContext when you call render_to_response. We always want to use RequestContext, so that django adds the context from settings.TEMPLATE_CONTEXT_PROCESSORS. This way we automatically get necessary settings variables passed to each template. So we use a custom method, render_response instead of render_to_response. Hopefully future Django releases will make this unnecessary.
from troggle.alwaysUseRequestContext import render_response
from django.shortcuts import render_to_response as render_response
#from troggle.alwaysUseRequestContext import render_response
import re