You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/tutorial-django-webapp-postgres-cli.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.date: 09/10/2024
14
14
> [!NOTE]
15
15
> In this tutorial, you use Service Connector that simplifies the process of connecting a web app to a database service. This tutorial is a modification of the [App Service tutorial](../app-service/tutorial-python-postgresql-app.md), so you may see some similarities. Look into section [Create a passwordless connector to Postgres database](#create-a-passwordless-connector-to-postgres-database) to see where Service Connector comes into play and simplifies the connection process given in the App Service tutorial.
16
16
17
-
This tutorial shows how to deploy a data-driven Python [Django](https://www.djangoproject.com/) web app to [Azure App Service](overview.md) and connect it to an [Azure Database for PostgreSQL Flexible server](/azure/postgresql/flexible-server/) database.
17
+
This tutorial shows how to deploy a data-driven Python [Django](https://www.djangoproject.com/) web app to [Azure App Service](/azure/app-service/overview.md) and connect it to an [Azure Database for PostgreSQL Flexible server](/azure/postgresql/flexible-server/overview.md) database.
18
18
19
19
In this tutorial, you use the Azure CLI to complete the following tasks:
20
20
@@ -29,7 +29,7 @@ In this tutorial, you use the Azure CLI to complete the following tasks:
29
29
## Set up your initial environment
30
30
31
31
### [CloudShell](#tab/cloudshell)
32
-
Lauch from [Azure Cloud Shell](https://learn.microsoft.com/en-us/azure/cloud-shell/overview) from the Azure Portal and install the service connector passwordless extension for Azure CLI.
32
+
Lauch from [Azure Cloud Shell](/azure/cloud-shell/overview.md) from the Azure Portal and install the service connector passwordless extension for Azure CLI.
33
33
34
34
```terminal
35
35
az extension add --name serviceconnector-passwordless --upgrade
@@ -79,9 +79,6 @@ Open a terminal window in that *serviceconnector-webapp-postgresql-django-passwo
79
79
80
80
In this tutorial, you deploy a **[Django](https://www.djangoproject.com/)** web app to Azure App Service. The web app uses a system-assigned **[managed identity](/azure/active-directory/managed-identities-azure-resources/overview)** (passwordless connections) with Azure role-based access control to access [Azure Storage](/azure/storage/common/storage-introduction) and [Azure Database for PostgreSQL - Flexible Server](/azure/postgresql/flexible-server) resources. The code uses the [DefaultAzureCredential](/azure/developer/intro/passwordless-overview#introducing-defaultazurecredential) class of the [Azure Identity client library](/python/api/overview/azure/identity-readme) for Python. The `DefaultAzureCredential` class automatically detects that a managed identity exists for the App Service and uses it to access other Azure resources.
81
81
82
-
83
-
The sample is also modified to run in a production environment like App Service:
84
-
85
82
* Production settings are in the *azuresite/production.py* file. Development settings are in *azuresite/settings.py*.
86
83
* The app uses production settings when the `WEBSITE_HOSTNAME` environment variable is set. Azure App Service automatically sets this variable to the URL of the web app, such as `msdocs-django.azurewebsites.net`.
0 commit comments