Skip to content

Commit e6fb96a

Browse files
author
Bryce Chen
committed
create Azure-Samples repo and fix link
1 parent bd0a35f commit e6fb96a

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

articles/service-connector/tutorial-django-webapp-postgres-cli.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,18 @@ git clone https://github.com/Azure-Samples/serviceconnector-webapp-postgresql-dj
6262
Navigate into the following folder:
6363

6464
```terminal
65-
cd serviceconnector-webapp-postgresql-django
66-
```
67-
68-
Use the django-passwordless branch of the sample, which contains a few necessary changes, such as how the database server URL is set and adding `'OPTIONS': {'sslmode': 'require'}` to the Django database configuration as required by Azure PostgreSQL Flexible server.
69-
70-
```terminal
71-
git checkout django-passwordless
65+
cd serviceconnector-webapp-postgresql-django-passwordless
7266
```
7367

7468
### [Download](#tab/download)
7569

7670
Visit [https://github.com/Azure-Samples/serviceconnector-webapp-postgresql-django-passwordless](https://github.com/Azure-Samples/serviceconnector-webapp-postgresql-django-passwordless).
7771

78-
For Flexible server, select the branches control that says "master" and then select the **django-passwordless** branch.
79-
8072
Select **Code**, and then select **Download ZIP**.
8173

82-
Unpack the ZIP file into a folder named *msdocs-django-web-app-managed-identity*.
74+
Unpack the ZIP file into a folder named *serviceconnector-webapp-postgresql-django-passwordless*.
8375

84-
Open a terminal window in that *msdocs-django-web-app-managed-identity* folder.
76+
Open a terminal window in that *serviceconnector-webapp-postgresql-django-passwordless* folder.
8577

8678
---
8779

@@ -177,13 +169,7 @@ In this section, you create app host in App Service app, connect this app to the
177169

178170
### Create the App Service app
179171

180-
1. In the terminal, make sure you're in the *msdocs-django-web-app-managed-identity* repository folder that contains the app code.
181-
182-
1. Switch to the sample app's `django-passwordless` branch. This branch contains specific configuration needed for PostgreSQL Flexible server:
183-
184-
```cmd
185-
git checkout django-passwordless
186-
```
172+
1. In the terminal, make sure you're in the *serviceconnector-webapp-postgresql-django-passwordless* repository folder that contains the app code.
187173
188174
1. Run the following [`az webapp up`](/cli/azure/webapp#az-webapp-up) command to create the App Service host for the app:
189175

0 commit comments

Comments
 (0)