equal
deleted
inserted
replaced
|
1 In-house patch to address |
|
2 https://bugs.launchpad.net/osprofiler/+bug/1361235 in Horizon. |
|
3 |
|
4 --- horizon-2014.2.1/openstack_dashboard/wsgi/django.wsgi.orig 2014-11-13 15:02:19.599694847 -0700 |
|
5 +++ horizon-2014.2.1/openstack_dashboard/wsgi/django.wsgi 2014-11-13 15:03:31.633159017 -0700 |
|
6 @@ -5,7 +5,12 @@ import django.core.handlers.wsgi |
|
7 from django.conf import settings |
|
8 |
|
9 # Add this file path to sys.path in order to import settings |
|
10 -sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')) |
|
11 + |
|
12 +# XXX workaround until |
|
13 +# https://bugs.launchpad.net/osprofiler/+bug/1361235 in osprofiler is |
|
14 +# fixed |
|
15 +# sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')) |
|
16 +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.realpath('../..'))) |
|
17 os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings' |
|
18 sys.stdout = sys.stderr |
|
19 |