Skip to content

Commit

Permalink
Patch for osprofiler regression in django wsgi.
Browse files Browse the repository at this point in the history
 - 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
  • Loading branch information
drifterza committed Nov 14, 2016
1 parent 58c4408 commit 6e23b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/horizon_django.wsgi.j2
Expand Up @@ -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

Expand Down

0 comments on commit 6e23b3b

Please sign in to comment.