From 6e23b3b2f0b7c37112d6fb4ca61b3c89f5f809e5 Mon Sep 17 00:00:00 2001 From: "Donovan Francesco (drifterza)" Date: Fri, 11 Nov 2016 18:40:36 +0200 Subject: [PATCH] Patch for osprofiler regression in django wsgi. - Normalise the path to resolve ../.. - The "../.." fragment appears to be causing code in osprofiler/_utils.py some issues, so we'll resolve it for them. - https://review.openstack.org/#/c/397002/1 Change-Id: I3b8270b92be5d6ec58a17aea1b08a0203a144370 Partial-Bug: 1361235 --- templates/horizon_django.wsgi.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/horizon_django.wsgi.j2 b/templates/horizon_django.wsgi.j2 index 1be0e06f..b7fbe818 100644 --- a/templates/horizon_django.wsgi.j2 +++ b/templates/horizon_django.wsgi.j2 @@ -5,7 +5,7 @@ from django.core.wsgi import get_wsgi_application from django.conf import settings # Add this file path to sys.path in order to import settings -sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')) +sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings' sys.stdout = sys.stderr