Skip to main content

openstack_auth.multi_regions

宝德云多区域切换库 (http://console.plcloud.com)

依赖

  1. django_openstack_auth >= 1.1.4

配置方法

  1. 修改openstack_dashboard/urls.py文件, 替换auth url

- url(r'^auth/', include('openstack_auth.urls'))
+ url(r'^auth/', include('openstack_auth.multi_regions.urls'))
  1. 修改openstack_dashboard/settings.py文件, 添加multi_regions app

INSTALLED_APPS = (
    '''
    'openstack_auth.multi_regions',
    '''
)
  1. 配置local_settings.py, 添加MULTI_REGIONS

from openstack_auth.multi_regions import i18n as mt_i18n
'''
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)'),
]
MULTI_REGIONS = mt_i18n(MULTI_REGIONS)
OPENSTACK_KEYSTONE_URL = MULTI_REGIONS[0][0]

Metadata

Release files for django_openstack_auth.multi_regions 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django_openstack_auth.multi_regions 1.2.0
File Size Uploaded Provenance Actions
django_openstack_auth.multi_regions-1.2.0.tar.gz 11.2 kB Without provenance Details for django_openstack_auth.multi_regions-1.2.0.tar.gz

Release files / django_openstack_auth.multi_regions-1.2.0.tar.gz

Download URL django_openstack_auth.multi_regions-1.2.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
05297d12ecc9480222899548ba3fd5b338e981d9d3d8d2ba09c72c93c17ab84b
BLAKE2b-256 checksum
How to use checksums
104fdc5641265caee02a62df1ad900a37fd6b7c87f25c7b26bb7541f245d0aaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django_openstack_auth.multi_regions 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page