Skip to content

Commit f70acc6

Browse files
committed
webapps
1 parent 390841a commit f70acc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-app-configuration/quickstart-python-provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ The App Configuration provider loads data into a `Mapping` object, accessible as
196196
You can use Azure App Configuration in your existing Flask web apps by updating its in-built configuration. You can do this by passing your App Configuration provider object to the `update` function of your Flask app instance in `app.py`:
197197

198198
```python
199-
azure_app_config = load(connection_string=os.environ.get("AZURE_APPCONFIG_CONNECTION_STRING"))
199+
azure_app_config = load(endpoint=os.environ.get("AZURE_APPCONFIG_ENDPOINT"), credential=credential)
200200

201201
# NOTE: This will override all existing configuration settings with the same key name.
202202
app.config.update(azure_app_config)
@@ -209,7 +209,7 @@ message = app.config.get("message")
209209
You can use Azure App Configuration in your existing Django web apps by adding the following lines of code into your `settings.py` file
210210

211211
```python
212-
AZURE_APPCONFIGURATION = load(connection_string=os.environ.get("AZURE_APPCONFIG_CONNECTION_STRING"))
212+
AZURE_APPCONFIGURATION = load(endpoint=os.environ.get("AZURE_APPCONFIG_ENDPOINT"), credential=credential)
213213
```
214214

215215
To access individual configuration settings in the Django views, you can reference them from the provider object created in Django settings. For example, in `views.py`:

0 commit comments

Comments
 (0)