File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# The path under which the ui views will be served from
2
- #UI_PATH = "/ui/"
2
+ #UI_BASE_URL = "/ui/"
3
3
4
4
# The path used to serve the astakos identity and account endpoints.
5
5
#UI_ASTAKOS_PROXY_PATH = "_astakos"
Original file line number Diff line number Diff line change 19
19
from synnefo .lib import parse_base_url
20
20
21
21
22
- BASE_PATH = getattr (settings , 'UI_BASE_PATH ' , '/ui/' )
22
+ BASE_URL = getattr (settings , 'UI_BASE_URL ' , '/ui/' )
23
23
24
24
AUTH_METHOD = getattr (settings , 'UI_AUTH_METHOD' , 'cookie:_pithos2_a' )
25
25
26
26
PROXY_PATH = getattr (settings , 'UI_ASTAKOS_PROXY_PATH' , '_astakos' )
27
27
ASTAKOS_IDENTITY_PROXY_PATH = getattr (settings ,
28
28
'UI_ASTAKOS_IDENTITY_PROXY_PATH' ,
29
- '%s%s/identity' % (BASE_PATH , PROXY_PATH ))
29
+ '%s%s/identity' % (BASE_URL , PROXY_PATH ))
30
30
31
31
ASTAKOS_ACCOUNT_PROXY_PATH = getattr (settings ,
32
32
'UI_ASTAKOS_ACCOUNT_PROXY_PATH' ,
33
- '%s%s/account' % (BASE_PATH , PROXY_PATH ))
33
+ '%s%s/account' % (BASE_URL , PROXY_PATH ))
34
34
35
35
COMMON_AUTH_URL = getattr (settings , 'ASTAKOS_AUTH_URL' , None )
36
36
ASTAKOS_ACCOUNT_BASE_URL = getattr (settings ,
Original file line number Diff line number Diff line change 23
23
from snf_django .lib .api import api_endpoint_not_found
24
24
from snf_django .utils .urls import extend_path_with_slash
25
25
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 , \
27
27
ASTAKOS_IDENTITY_BASE_URL , ASTAKOS_ACCOUNT_PROXY_PATH , \
28
28
ASTAKOS_ACCOUNT_BASE_URL
29
29
54
54
urlpatterns = proxy_patterns
55
55
urlpatterns += patterns (
56
56
'' ,
57
- (prefix_pattern (BASE_PATH ), include (ui_patterns )))
57
+ (prefix_pattern (BASE_URL ), include (ui_patterns )))
58
58
59
59
60
- extend_path_with_slash (urlpatterns , BASE_PATH );
60
+ extend_path_with_slash (urlpatterns , BASE_URL );
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def app(request):
41
41
context = {
42
42
'app_settings' : json .dumps (app_settings ),
43
43
'UI_MEDIA_URL' : ui_settings .UI_MEDIA_URL ,
44
- 'UI_BASE_URL' : ui_settings .BASE_PATH
44
+ 'UI_BASE_URL' : ui_settings .BASE_URL
45
45
}
46
46
return direct_to_template (request , "snf_ui_index.html" ,
47
47
extra_context = context )
You can’t perform that action at this time.
0 commit comments