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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Deploy a Python (Django) web app container to Azure App Service (in progress)
2
2
3
-
This Python web app is a restaurant review application using the [Django](https://www.djangoproject.com/) framework. The app is intended to be used as a container running on Azure App Service with a connection to an Azure Cosmos DB API for MongoDB.
3
+
This Python web app is a restaurant review application using the [Django](https://www.djangoproject.com/) framework. The app is intended to be used as a container running in Azure App Service with a connection to MongoDB such as Azure Cosmos DB API for MongoDB.
4
4
5
-
Following the tutorial [TBD: coming soon](TBD), you can deploy this web app Azure, hosted in a fully managed Azure App Service. Azure managed identity enables the App Service to pull container images from an Azure Container Registry. MongoDB connection info is passed to the code through environment variables.
5
+
Following the tutorial [Containerized Python web app on Azure](https://docs.microsoft.com/azure/developer/python/tutorial-containerize-deploy-python-web-app-azure-01), you can deploy this web app to Azure, hosted in a fully managed Azure App Service. Azure managed identity enables the App Service to pull container images from an Azure Container Registry. MongoDB connection info is passed to the code through environment variables.
6
6
7
7
If you need an Azure account, you can [create on for free](https://azure.microsoft.com/free/).
8
8
@@ -14,8 +14,8 @@ Here are some ways you can run the sample web app in this repository.
| Local environment | Run repo code in virtual environment with *requirements.txt*. Set environment variables in shell before running. For an example, see [Configure a Python virtual environment](https://docs.microsoft.com/azure/developer/python/configure-local-development-environment#configure-python-virtual-environment).| Build image from repo and run locally in Docker container. Pass environment variables in Docker CLI command or with VS Code task definition <sup>1</sup>. This scenario is covered in [Tutorial: coming soon](TBD).|
18
-
| Azure App Service | Deploy repo code to App service. Set environment variables as App Service configuration settings. See note about subpath. <sup>2</sup> | Deploy container to [Web App for Containers](https://azure.microsoft.com/services/app-service/containers/). Build image locally or in Azure and push to container registry like Azure Container Registry. Configure App Service to pull from registry. Set environment variables as App Service configuration settings. This scenario is covered in [Tutorial: coming soon](TBD). |
17
+
| Local environment | Run repo code in virtual environment with *requirements.txt*. Set environment variables in shell before running. For an example, see [Configure a Python virtual environment](https://docs.microsoft.com/azure/developer/python/configure-local-development-environment#configure-python-virtual-environment).| Build image from repo and run locally in Docker container. Pass environment variables in Docker CLI command or with VS Code task definition <sup>1</sup>. This scenario is covered in [Containerized Python web app on Azure](https://docs.microsoft.com/azure/developer/python/tutorial-containerize-deploy-python-web-app-azure-01).|
18
+
| Azure App Service | Deploy repo code to App service. Set environment variables as App Service configuration settings. See note about subpath. <sup>2</sup> | Deploy container to [Web App for Containers](https://azure.microsoft.com/services/app-service/containers/). Build image locally or in Azure and push to container registry like Azure Container Registry. Configure App Service to pull from registry. Set environment variables as App Service configuration settings. This scenario is covered in [Containerized Python web app on Azure](https://docs.microsoft.com/azure/developer/python/tutorial-containerize-deploy-python-web-app-azure-01). |
19
19
|[Azure Container Apps](https://docs.microsoft.com/azure/container-apps/overview)|*n/a*| Build image locally or in Azure and push to container registry like Azure Container Registry. Create a Container App with deployment from the registry. Configure environment variables for the container. |
20
20
21
21
(1) The *.vscode* directory *settings.json* and *tasks.json* are configured either for a MongoDB local connection or an Azure Cosmos DB connection. The tasks and templates in *.vscode* are only used when using Visual Studio Code locally.
0 commit comments