diff --git a/www/modpythoncustom.py b/www/modpythoncustom.py index 5041e03861cf02eace77080d9711c9bb994fd426..d3234566f95522c24c8124b6ce6eb5d8e2497087 100644 --- a/www/modpythoncustom.py +++ b/www/modpythoncustom.py @@ -1,5 +1,6 @@ from mod_python import apache + # 404 should do NOTHING so apache can handle it. This view is referenced # in sflc.urls def view404(request): @@ -30,6 +31,8 @@ def outputfilter(filter): if s is None: filter.close() +from django.core.handlers.modpython import * + # This is unreferenced from this file, but it must be imported to # enable template inheritance in the outputfilter! import django.template.loader @@ -37,7 +40,6 @@ import django.template.loader # And now we override a few things in the module # django.core.handlers.modpython -from django.core.handlers.modpython import * del handler class ModPythonRequest(ModPythonRequest):