宝德云多区域切换库 (http://console.plcloud.com)
依赖
openstack_auth > 1.1.4
配置方法
修改openstack_dashboard/urls.py文件, 替换auth url
- url(r'^auth/', include('openstack_auth.urls'))
+ url(r'^auth/', include('openstack_auth.multi_regions.urls'))
修改openstack_dashboard/settings.py文件,添加multi_regions app
INSTALLED_APPS = (
'''
'openstack_auth.multi_regions',
'''
)
配置local_settings.py 添加MULTI_REGIONS
MULTI_REGIONS = [
('http://10.0.0.1:5000/v2.0', 'beijing', 'BeiJing-1(PEK-1)'),
('http://172.16.0.1:5000/v2.0', 'shenzhen', 'ShenZhen-1(SZX-1)'),
('http://192.168.100.1:5000/v2.0', 'lab-test', 'Lab-Test-1(Lab-1)'),
]
OPENSTACK_KEYSTONE_URL = MULTI_REGIONS[0]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django_openstack_auth.multi_regions-1.0.0.2.g0688986.tar.gz.
File metadata
- Download URL: django_openstack_auth.multi_regions-1.0.0.2.g0688986.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6808c142208919aee71d229e0bbc88f1c813017dd6f3b7f066a4b235459ea269
|
|
| MD5 |
6f5c09577a35ba5ab467f4d22525e801
|
|
| BLAKE2b-256 |
d72afe568f94a53ef0528bf7c489fecbda22258a7c87e03f52495a36659fa640
|