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/app-service/configure-language-python.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This article describes how [Azure App Service](overview.md) runs Python apps, ho
17
17
18
18
The App Service deployment engine automatically activates a virtual environment and runs `pip install -r requirements.txt` for you when you deploy a [Git repository](deploy-local-git.md), or when you deploy a [zip package](deploy-zip.md)[with build automation enabled](deploy-zip.md#enable-build-automation-for-zip-deploy).
19
19
20
-
This guide provides key concepts and instructions for Python developers who use a built-in Linux container in App Service. If you've never used Azure App Service, first follow the [Python quickstart](quickstart-python.md) and [Python with PostgreSQL tutorial](tutorial-python-postgresql-app.md).
20
+
This guide provides key concepts and instructions for Python developers who use a built-in Linux container in App Service. If you've never used Azure App Service, first follow the [Python quickstart](quickstart-python.md) and [Flask](tutorial-python-postgresql-app-flask.md), [Django](tutorial-python-postgresql-app-djanog.md), or [FastAPI](tutorial-python-postgresql-app-fastapi.md) with PostgreSQL tutorial.
21
21
22
22
You can use either the [Azure portal](https://portal.azure.com) or the Azure CLI for configuration:
23
23
@@ -105,17 +105,17 @@ Existing web applications can be redeployed to Azure as follows:
105
105
106
106
1. **Database**: If your app depends on a database, create the necessary resources on Azure as well.
107
107
108
-
1. **App service resources**: Create a resource group, App Service plan, and App Service web app to host your application. You can do this easily by running the Azure CLI command [`az webapp up`](/cli/azure/webapp#az-webapp-up). Or, you can create and deploy resources as shown in [Tutorial: Deploy a Python (Django or Flask) web app with PostgreSQL](tutorial-python-postgresql-app.md). Replace the names of the resource group, App Service plan, and web app to be more suitable for your application.
108
+
1. **App service resources**: Create a resource group, App Service plan, and App Service web app to host your application. You can do this easily by running the Azure CLI command [`az webapp up`](/cli/azure/webapp#az-webapp-up). Or, you can create and deploy resources as shown in the [Flask](tutorial-python-postgresql-app-flask.md), [Django](tutorial-python-postgresql-app-djanog.md), or [FastAPI](tutorial-python-postgresql-app-fastapi.md) with PostgreSQL tutorial. Replace the names of the resource group, App Service plan, and web app to be more suitable for your application.
109
109
110
110
1. **Environment variables**: If your application requires any environment variables, create equivalent [App Service application settings](configure-common.md#configure-app-settings). These App Service settings appear to your code as environment variables, as described in [Access environment variables](#access-app-settings-as-environment-variables).
111
-
- Database connections, for example, are often managed through such settings, as shown in [Tutorial: Deploy a Django web app with PostgreSQL - verify connection settings](tutorial-python-postgresql-app.md#2-secure-connection-secrets).
111
+
- Database connections, for example, are often managed through such settings, as shown in [Tutorial: Deploy a Django web app with PostgreSQL - verify connection settings](tutorial-python-postgresql-app-django.md#2-secure-connection-secrets).
112
112
- See [Production settings for Django apps](#production-settings-for-django-apps) for specific settings for typical Django apps.
113
113
114
114
1. **App startup**: Review the section [Container startup process](#container-startup-process) later in this article to understand how App Service attempts to run your app. App Service uses the Gunicorn web server by default, which must be able to find your app object or *wsgi.py* folder. If you need to, you can [Customize the startup command](#customize-startup-command).
115
115
116
116
1. **Continuous deployment**: Set up continuous deployment from GitHub Actions, Bitbucket, or Azure Repos as described in the article [Continuous deployment to Azure App Service](deploy-continuous-deployment.md). Or, set up continuous deployment from Local Git as described in the article [Local Git deployment to Azure App Service](deploy-local-git.md).
117
117
118
-
1. **Custom actions**: To perform actions within the App Service container that hosts your app, such as Django database migrations, you can [connect to the container through SSH](configure-linux-open-ssh-session.md). For an example of running Django database migrations, see [Tutorial: Deploy a Django web app with PostgreSQL - generate database schema](tutorial-python-postgresql-app.md#4-generate-database-schema).
118
+
1. **Custom actions**: To perform actions within the App Service container that hosts your app, such as Django database migrations, you can [connect to the container through SSH](configure-linux-open-ssh-session.md). For an example of running Django database migrations, see [Tutorial: Deploy a Django web app with PostgreSQL - generate database schema](tutorial-python-postgresql-app-django.md#4-generate-database-schema).
119
119
- When using continuous deployment, you can perform those actions using post-build commands as described earlier under [Customize build automation](#customize-build-automation).
120
120
121
121
With these steps completed, you should be able to commit changes to your source repository and have those updates automatically deployed to App Service.
@@ -430,7 +430,7 @@ When attempting to run database migrations with a Django app, you might see "sql
430
430
431
431
Check the `DATABASES` variable in the app's *settings.py* file to ensure that your app is using a cloud database instead of SQLite.
432
432
433
-
If you're encountering this error with the sample in [Tutorial: Deploy a Django web app with PostgreSQL](tutorial-python-postgresql-app.md), check that you completed the steps in [Verify connection settings](tutorial-python-postgresql-app.md#2-secure-connection-secrets).
433
+
If you're encountering this error with the sample in [Tutorial: Deploy a Django web app with PostgreSQL](tutorial-python-postgresql-app-django.md), check that you completed the steps in [Verify connection settings](tutorial-python-postgresql-app-django.md#2-secure-connection-secrets).
434
434
435
435
#### Other issues
436
436
@@ -444,7 +444,9 @@ If you're encountering this error with the sample in [Tutorial: Deploy a Django
444
444
445
445
## Related content
446
446
447
-
-[Tutorial: Python app with PostgreSQL](tutorial-python-postgresql-app.md)
447
+
-[Tutorial: Flask app with PostgreSQL](tutorial-python-postgresql-app-flask.md)
448
+
-[Tutorial: Django app with PostgreSQL](tutorial-python-postgresql-app-django.md)
449
+
-[Tutorial: FastAPI app with PostgreSQL](tutorial-python-postgresql-app-fastapi.md)
448
450
-[Tutorial: Deploy from private container repository](tutorial-custom-container.md?pivots=container-linux)
449
451
-[App Service on Linux FAQ](faq-app-service-linux.yml)
450
452
-[Environment variables and app settings reference](reference-app-settings.md)
Copy file name to clipboardExpand all lines: articles/app-service/includes/tutorial-microsoft-graph-as-app/cleanup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,4 +18,4 @@ In this tutorial, you learned how to:
18
18
> * Add Microsoft Graph API permissions to a managed identity.
19
19
> * Call Microsoft Graph from a web app by using managed identities.
20
20
21
-
Learn how to connect a [.NET Core app](../../tutorial-dotnetcore-sqldb-app.md), [Python app](../../tutorial-python-postgresql-app.md), [Java app](../../tutorial-java-spring-cosmosdb.md), or [Node.js app](../../tutorial-nodejs-mongodb-app.md) to a database.
21
+
Learn how to connect a [.NET Core app](../../tutorial-dotnetcore-sqldb-app.md) or [Node.js app](../../tutorial-nodejs-mongodb-app.md) to a database.
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-send-email.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Deploy an app with the language framework of your choice to App Service. To foll
43
43
44
44
### [Python](#tab/python)
45
45
46
-
[Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](tutorial-python-postgresql-app.md)
46
+
[Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](tutorial-python-postgresql-app-django.md)
47
47
48
48
---
49
49
@@ -292,7 +292,7 @@ async with aiohttp.post('http://httpbin.org/post', data=json.dump(payload)) as r
292
292
print(await resp.status())
293
293
``` -->
294
294
295
-
If you're testing this code on the sample app for [Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](tutorial-python-postgresql-app.md), you could use it to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
295
+
If you're testing this code on the sample app for [Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](tutorial-python-postgresql-app-django.md), you could use it to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
0 commit comments