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 c66b5e2dad
commit 0ea70273fe
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