This is the sample Django application for the Azure Quickstart Deploy a Python (Django or Flask) web app to Azure App Service. For instructions on how to create the Azure resources and deploy the application to Azure, refer to the Quickstart article.
Sample applications are available for the other frameworks here:
- Flask https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart
- FastAPI https://github.com/Azure-Samples/msdocs-python-fastapi-webapp-quickstart
If you need an Azure account, you can create one for free.
Fill in a secret value in the .env
file.
For local development, use this random string as an appropriate value:
SECRET_KEY=123abc
For deployment to production, create an app setting, SECRET_KEY
. Use this command to generate an appropriate value:
python -c 'import secrets; print(secrets.token_hex())'