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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user