Skip to content

Commit 3e0f252

Browse files
gerrod3cursoragent
andcommitted
Migrate to Django 5 STORAGES and get_domain()
Assisted by: cursor composer-1.5 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fda8d0b commit 3e0f252

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

template_config.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,20 @@ pulp_settings:
4747
orphan_protection_time: 0
4848
pypi_api_hostname: https://pulp:443
4949
pulp_settings_azure:
50-
AZURE_ACCOUNT_KEY: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
51-
AZURE_ACCOUNT_NAME: devstoreaccount1
52-
AZURE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;
53-
AZURE_CONTAINER: pulp-test
54-
AZURE_LOCATION: pulp3
55-
AZURE_OVERWRITE_FILES: true
56-
AZURE_URL_EXPIRATION_SECS: 120
57-
DEFAULT_FILE_STORAGE: storages.backends.azure_storage.AzureStorage
5850
MEDIA_ROOT: ''
51+
STORAGES:
52+
default:
53+
BACKEND: storages.backends.azure_storage.AzureStorage
54+
OPTIONS:
55+
account_key: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
56+
account_name: devstoreaccount1
57+
azure_container: pulp-test
58+
connection_string: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;
59+
expiration_secs: 120
60+
location: pulp3
61+
overwrite_files: true
62+
staticfiles:
63+
BACKEND: django.contrib.staticfiles.storage.StaticFilesStorage
5964
content_origin: null
6065
domain_enabled: true
6166
pulp_settings_gcp: null

0 commit comments

Comments
 (0)