From c0022ecc8803d92f2ecedbcce90037a8b48dac77 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 5 Oct 2011 20:57:02 -0500 Subject: [PATCH] Fixing 404s, related to recent util refactoring. --- mediagoblin/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mediagoblin/app.py b/mediagoblin/app.py index 0f25a4e5..a72b9306 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -21,7 +21,8 @@ import routes from webob import Request, exc from mediagoblin import routing, middleware -from mediagoblin.tools import common, translate, template, response +from mediagoblin.tools import common, translate, template +from mediagoblin.tools.response import render_404 from mediagoblin.tools import request as mg_request from mediagoblin.mg_globals import setup_globals from mediagoblin.init.celery import setup_celery_from_config @@ -150,7 +151,7 @@ class MediaGoblinApp(object): # Okay, no matches. 404 time! request.matchdict = {} # in case our template expects it - return response.render_404(request)(environ, start_response) + return render_404(request)(environ, start_response) controller = common.import_component(route_match['controller']) request.start_response = start_response -- 2.25.1