Skip to content

Commit 0d8cb2e

Browse files
viniliosathinab
authored andcommitted
BASE_PATH -> BASE_URL
1 parent 5ab2f55 commit 0d8cb2e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

conf/20-snf-ui-settings.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The path under which the ui views will be served from
2-
#UI_PATH = "/ui/"
2+
#UI_BASE_URL = "/ui/"
33

44
# The path used to serve the astakos identity and account endpoints.
55
#UI_ASTAKOS_PROXY_PATH = "_astakos"

synnefo_ui/ui_settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
from synnefo.lib import parse_base_url
2020

2121

22-
BASE_PATH = getattr(settings, 'UI_BASE_PATH', '/ui/')
22+
BASE_URL = getattr(settings, 'UI_BASE_URL', '/ui/')
2323

2424
AUTH_METHOD = getattr(settings, 'UI_AUTH_METHOD', 'cookie:_pithos2_a')
2525

2626
PROXY_PATH = getattr(settings, 'UI_ASTAKOS_PROXY_PATH', '_astakos')
2727
ASTAKOS_IDENTITY_PROXY_PATH = getattr(settings,
2828
'UI_ASTAKOS_IDENTITY_PROXY_PATH',
29-
'%s%s/identity' % (BASE_PATH, PROXY_PATH))
29+
'%s%s/identity' % (BASE_URL, PROXY_PATH))
3030

3131
ASTAKOS_ACCOUNT_PROXY_PATH = getattr(settings,
3232
'UI_ASTAKOS_ACCOUNT_PROXY_PATH',
33-
'%s%s/account' % (BASE_PATH, PROXY_PATH))
33+
'%s%s/account' % (BASE_URL, PROXY_PATH))
3434

3535
COMMON_AUTH_URL = getattr(settings, 'ASTAKOS_AUTH_URL', None)
3636
ASTAKOS_ACCOUNT_BASE_URL = getattr(settings,

synnefo_ui/urls.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from snf_django.lib.api import api_endpoint_not_found
2424
from snf_django.utils.urls import extend_path_with_slash
2525

26-
from synnefo_ui.ui_settings import BASE_PATH, ASTAKOS_IDENTITY_PROXY_PATH, \
26+
from synnefo_ui.ui_settings import BASE_URL, ASTAKOS_IDENTITY_PROXY_PATH, \
2727
ASTAKOS_IDENTITY_BASE_URL, ASTAKOS_ACCOUNT_PROXY_PATH, \
2828
ASTAKOS_ACCOUNT_BASE_URL
2929

@@ -54,7 +54,7 @@
5454
urlpatterns = proxy_patterns
5555
urlpatterns += patterns(
5656
'',
57-
(prefix_pattern(BASE_PATH), include(ui_patterns)))
57+
(prefix_pattern(BASE_URL), include(ui_patterns)))
5858

5959

60-
extend_path_with_slash(urlpatterns, BASE_PATH);
60+
extend_path_with_slash(urlpatterns, BASE_URL);

synnefo_ui/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def app(request):
4141
context = {
4242
'app_settings': json.dumps(app_settings),
4343
'UI_MEDIA_URL': ui_settings.UI_MEDIA_URL,
44-
'UI_BASE_URL': ui_settings.BASE_PATH
44+
'UI_BASE_URL': ui_settings.BASE_URL
4545
}
4646
return direct_to_template(request, "snf_ui_index.html",
4747
extra_context=context)

0 commit comments

Comments
 (0)