Tutorial on how to Deploy Django app with App Service and Azure Database for PostgreSQL - Flexible Server in virtual network (2023)

  • Article
  • 9 minutes to read

APPLIES TO: Tutorial on how to Deploy Django app with App Service and Azure Database for PostgreSQL - Flexible Server in virtual network (1)Azure Database for PostgreSQL - Flexible Server

In this tutorial you'll learn how to deploy a Django application in Azure using App Services and Azure Database for PostgreSQL - Flexible Server in a virtual network.


If you don't have an Azure subscription, create a free account before you begin.

This article requires that you're running the Azure CLI version 2.0 or later locally. To see the version installed, run the az --version command. If you need to install or upgrade, see Install Azure CLI.

You'll need to log in to your account using the az login command. Note the id property from the command output for the corresponding subscription name.

az login

If you have multiple subscriptions, choose the appropriate subscription in which the resource should be billed. Select the specific subscription ID under your account using az account set command. Substitute the subscription ID property from the az login output for your subscription into the subscription ID placeholder.

az account set --subscription <subscription id>

Clone or download the sample app

  • Git clone
  • Download

Clone the sample repository:

git clone https://github.com/Azure-Samples/djangoapp

Then go into that folder:

cd djangoapp

The djangoapp sample contains the data-driven Django polls app you get by following Writing your first Django app in the Django documentation. The completed app is provided here for your convenience.

The sample is also modified to run in a production environment like App Service:

  • Production settings are in the azuresite/production.py file. Development details are in azuresite/settings.py.
  • The app uses production settings when the DJANGO_ENV environment variable is set to "production". You create this environment variable later in the tutorial along with others used for the PostgreSQL database configuration.

These changes are specific to configuring Django to run in any production environment and aren't particular to App Service. For more information, see the Django deployment checklist.

(Video) 63. PostgreSQL DBA: How to create Azure database for PostgreSQL server and connect using pgadmin

Create a PostgreSQL Flexible Server in a new virtual network

Create a private flexible server and a database inside a virtual network (VNET) using the following command:

# Create Flexible server in a VNETaz postgres flexible-server create --resource-group myresourcegroup --location westus2

This command performs the following actions, which may take a few minutes:

  • Create the resource group if it doesn't already exist.
  • Generates a server name if it isn't provided.
  • Create a new virtual network for your new postgreSQL server. Make a note of virtual network name and subnet name created for your server since you need to add the web app to the same virtual network.
  • Creates admin username, password for your server if not provided. Make a note of the username and password to use in the next step.
  • Create a database postgres that can be used for development. You can run psql to connect to the database to create a different database.


Make a note of your password that will be generate for you if not provided. If you forget the password you would have to reset the password using az postgres flexible-server update command

Deploy the code to Azure App Service

In this section, you create app host in App Service app, connect this app to the Postgres database, then deploy your code to that host.

Create the App Service web app in a virtual network

In the terminal, make sure you're in the repository root (djangoapp) that contains the app code.

Create an App Service app (the host process) with the az webapp up command:

# Create a web appaz webapp up --resource-group myresourcegroup --location westus2 --plan DjangoPostgres-tutorial-plan --sku B1 --name <app-name># Enable VNET integration for web app.# Replace <vnet-name> and <subnet-name> with the virtual network and subnet name that the flexible server is using.az webapp vnet-integration add -g myresourcegroup -n mywebapp --vnet <vnet-name> --subnet <subnet-name># Configure database information as environment variables# Use the postgres server name , database name , username , password for the database created in the previous stepsaz webapp config appsettings set --settings DJANGO_ENV="production" DBHOST="<postgres-server-name>.postgres.database.azure.com" DBNAME="postgres" DBUSER="<username>" DBPASS="<password>"
  • For the --location argument, use the same location as you did for the database in the previous section.
  • Replace <app-name> with a unique name across all Azure (the server endpoint is https://\<app-name>.azurewebsites.net). Allowed characters for <app-name> are A-Z, 0-9, and -. A good pattern is to use a combination of your company name and an app identifier.
  • Create the App Service plan DjangoPostgres-tutorial-plan in the Basic pricing tier (B1), if it doesn't exist. --plan and --sku are optional.
  • Create the App Service app if it doesn't exist.
  • Enable default logging for the app, if not already enabled.
  • Upload the repository using ZIP deployment with build automation enabled.
  • az webapp vnet-integration command adds the web app in the same virtual network as the postgres server.
  • The app code expects to find database information in many environment variables. To set environment variables in App Service, you create "app settings" with the az webapp config appsettings set command.


Many Azure CLI commands cache common parameters, such as the name of the resource group and App Service plan, into the file .azure/config. As a result, you don't need to specify all the same parameter with later commands. For example, to redeploy the app after making changes, you can just run az webapp up again without any parameters.

Run Django database migrations

Django database migrations ensure that the schema in the PostgreSQL on Azure database match those described in your code.

  1. Open an SSH session in the browser by navigating to https://<app-name>.scm.azurewebsites.net/webssh/host and sign in with your Azure account credentials (not the database server credentials).

  2. In the SSH session, run the following commands (you can paste commands using Ctrl+Shift+V):

    (Video) How to deploy PostgreSQL on Azure

    cd site/wwwroot# Activate default virtual environment in App Service containersource /antenv/bin/activate# Install packagespip install -r requirements.txt# Run database migrationspython manage.py migrate# Create the super user (follow prompts)python manage.py createsuperuser
  3. The createsuperuser command prompts you for superuser credentials. For the purposes of this tutorial, use the default username root, press Enter for the email address to leave it blank, and enter postgres1 for the password.

Create a poll question in the app

  1. In a browser, open the URL http://<app-name>.azurewebsites.net. The app should display the message "No polls are available" because there are no specific polls yet in the database.

  2. Browse to http://<app-name>.azurewebsites.net/admin. Sign in using superuser credentials from the previous section (root and postgres1). Under Polls, select Add next to Questions and create a poll question with some choices.

  3. Browse again to http://<app-name>.azurewebsites.net/ to confirm that the questions are now presented to the user. Answer questions however you like to generate some data in the database.

Congratulations! You're running a Python Django web app in Azure App Service for Linux, with an active Postgres database.


App Service detects a Django project by looking for a wsgi.py file in each subfolder, which manage.py startproject creates by default. When App Service finds that file, it loads the Django web app. For more information, see Configure built-in Python image.

Make code changes and redeploy

In this section, you make local changes to the app and redeploy the code to App Service. In the process, you set up a Python virtual environment that supports ongoing work.

Run the app locally

In a terminal window, run the following commands. Be sure to follow the prompts when creating the superuser:

# Configure the Python virtual environmentpython3 -m venv venvsource venv/bin/activate# Install packagespip install -r requirements.txt# Run Django migrationspython manage.py migrate# Create Django superuser (follow prompts)python manage.py createsuperuser# Run the dev serverpython manage.py runserver

Once the web app is fully loaded, the Django development server provides the local app URL in the message, "Starting development server at Quit the server with CTRL-BREAK".

Tutorial on how to Deploy Django app with App Service and Azure Database for PostgreSQL - Flexible Server in virtual network (2)

Test the app locally with the following steps:

  1. Go to http://localhost:8000 in a browser, which should display the message "No polls are available".

    (Video) Introducing Flexible Server in Azure Database for PostgreSQL & MySQL | Azure Friday

  2. Go to http://localhost:8000/admin and sign in using the admin user you created previously. Under Polls, again select Add next to Questions and create a poll question with some choices.

  3. Go to http://localhost:8000 again and answer the question to test the app.

  4. Stop the Django server by pressing Ctrl+C.

When running locally, the app is using a local Sqlite3 database and doesn't interfere with your production database. You can also use a local PostgreSQL database, if desired, to better simulate your production environment.

Update the app

In polls/models.py, locate the line that begins with choice_text and change the max_length parameter to 100:

# Find this lie of code and set max_length to 100 instead of 200choice_text = models.CharField(max_length=100)

Because you changed the data model, create a new Django migration and migrate the database:

python manage.py makemigrationspython manage.py migrate

Run the development server again with python manage.py runserver and test the app at to http://localhost:8000/admin:

Stop the Django web server again with Ctrl+C.

Redeploy the code to Azure

Run the following command in the repository root:

az webapp up

This command uses the parameters cached in the .azure/config file. Because App Service detects that the app already exists, it just redeploys the code.

Rerun migrations in Azure

Because you made changes to the data model, you need to rerun database migrations in App Service.

Open an SSH session again in the browser by navigating to https://<app-name>.scm.azurewebsites.net/webssh/host. Then run the following commands:

cd site/wwwroot# Activate default virtual environment in App Service containersource /antenv/bin/activate# Run database migrationspython manage.py migrate

Review app in production

Browse to http://<app-name>.azurewebsites.net and test the app again in production. (Because you only changed the length of a database field, the change is only noticeable if you try to enter a longer response when creation a question.)


You can use django-storages to store static & media assets in Azure storage. You can use Azure CDN for gzipping for static files.

(Video) PostgreSQL Flexible Server Database

Manage your app in the Azure portal

In the Azure portal, search for the app name and select the app in the results.

Tutorial on how to Deploy Django app with App Service and Azure Database for PostgreSQL - Flexible Server in virtual network (3)

By default, the portal shows your app's Overview page, which provides a general performance view. Here, you can also perform basic management tasks like browse, stop, restart, and delete. The tabs on the left side of the page show the different configuration pages you can open.

Tutorial on how to Deploy Django app with App Service and Azure Database for PostgreSQL - Flexible Server in virtual network (4)

Clean up resources

If you'd like to keep the app or continue to the next tutorial, skip ahead to Next steps. Otherwise, to avoid incurring ongoing charges you can delete the resource group create for this tutorial:

az group delete -g myresourcegroup

The command uses the resource group name cached in the .azure/config file. By deleting the resource group, you also deallocate and delete all the resources contained within it.

Next steps

Learn how to map a custom DNS name to your app:

Tutorial: Map custom DNS name to your app

Learn how App Service runs a Python app:

Configure Python app

(Video) Azure Data Academy - Introduction to Azure Database for PostgreSQL Flexible Server


How do I deploy Django project on Azure App Service? ›

Deploying our Django app onto Azure
  1. [ git init ] Initialize your local repo as a git repo.
  2. [ git remote add origin ] Link your local repo with the remote repo on GitHub.
  3. [ git pull ] Pull the remote . ...
  4. [ git add ] Add all files for staging.
  5. [ git commit ] Save changes to your local repo by “committing” them.

How to connect to Azure Database for PostgreSQL Flexible server? ›

If you don't have an Azure subscription, create a free Azure account before you begin.
  1. Sign in to the Azure portal. ...
  2. Create an Azure Database for PostgreSQL flexible server. ...
  3. Create an Azure Linux virtual machine. ...
  4. Install PostgreSQL client tools. ...
  5. Connect to the server from Azure Linux virtual machine. ...
  6. Clean up resources.
Sep 20, 2022

How do I connect Postgres database to Django app? ›

  1. Step 1 — Install and Configure Python 3. ...
  2. Step 2 — Install PostgreSQL. ...
  3. Step 3 — Configure PostgreSQL. ...
  4. Step 4 — Create a Virtual Environment. ...
  5. Step 5 — Install Django. ...
  6. Step 6 — Generate a Django Project. ...
  7. Step 7 — Start a Django App. ...
  8. Step 8 — Configure the Database Connection.
Aug 12, 2022

What is the best way to deploy a Django app to production? ›

You can use Visual Studio Code or your favorite text editor.
  1. Step 1: Creating a Python Virtual Environment for your Project. ...
  2. Step 2: Creating the Django Project. ...
  3. Step 3: Pushing the Site to GitHub. ...
  4. Step 4: Deploying to DigitalOcean with App Platform. ...
  5. Step 5: Deploying Your Static Files.
Sep 29, 2021

How do I deploy to app service in Azure? ›

Navigate to your app in the Azure portal and select Deployment Center under Deployment. Follow the instructions to select your repository and branch. This will configure a DevOps build and release pipeline to automatically build, tag, and deploy your container when new commits are pushed to your selected branch.

How do I deploy a Python application in Azure App Service? ›

In this article
  1. Create a repository for your app code.
  2. Provision the target Azure App Service.
  3. Create an Azure DevOps project and connect to Azure.
  4. Create a Python-specific pipeline to deploy to App Service.
  5. Run the pipeline.
  6. Run a post-deployment script.
  7. Considerations for Django.
  8. Run tests on the build agent.
Dec 20, 2022

How to connect Azure App Service to Azure PostgreSQL database? ›

Connect to PostgreSQL
  1. Start Azure Data Studio.
  2. The first time you start Azure Data Studio the Connection dialog opens. ...
  3. In the form that pops up, go to Connection type and select PostgreSQL from the drop-down.
  4. Fill in the remaining fields using the server name, user name, and password for your PostgreSQL server.
Dec 8, 2022

Which deployment option of PostgreSQL in Azure should you use? ›

For organizations that need to customize their PostgreSQL deployments, and need to overcome the limitations of the Azure Database for PostgreSQL managed service, the self-managed Azure VM option is the most appropriate option.

What is Azure Database for PostgreSQL Flexible servers? ›

Azure Database for PostgreSQL - Flexible Server is a fully managed database service designed to provide more granular control and flexibility over database management functions and configuration settings.

How to deploy Django project with PostgreSQL? ›

This tutorial show you how to deploy your Django application with PostgreSQL database.
Django application
  1. Create a new project.
  2. Create a new environment.
  3. Create a new application. To follow the guide, you can fork and use our repository. ...
  4. Select application port. After the application is created: ...
  5. Use Dockerfile.
Dec 22, 2022

How do you create a Django app and connect it to a database? ›

We use the following steps to establish the connection between Django and MySQL.
  1. Step - 1: Create a virtual environment and setting up the Django project.
  2. Step - 2 Create new Database.
  3. Step - 3: Update the settings.py.
  4. Step - 4 Install mysqlclient package.
  5. Step - 5 Run the migrate command.

How does Azure SQL Connect to Django database? ›

Configure Azure SQL connectivity with Django App
  1. Install ODBC driver: Instructions.
  2. Install pyodbc: Python Copy. pip install pyodbc.
  3. Install mssql-django: Python Copy. pip install mssql-django.
May 4, 2022

Which DB works best with Django? ›

Postgresql is the preferred database for Django applications due to its open-source nature; and it's also ideal for complex queries.

Which server is best for Django? ›

Therefore, for demanding projects built on Django, servers from Amazon, Microsoft, and Google are often optimal even with high prices.
  • Amazon Web Services (AWS)
  • Azure (Microsoft)
  • Google Cloud Platform.
  • Hetzner.
  • DigitalOcean.
  • Heroku.
Dec 30, 2022

Which environment is best for Django? ›

The Django developer team itself recommends that you use Python virtual environments!

What are the three kinds of app service in Azure? ›

Types of Azure App Services
  • Web Apps.
  • API Apps.
  • Logic Apps.
  • Function Apps.
Jul 28, 2022

How do I integrate VNet with app services? ›

Go to App Service plan > Networking > VNet integration in the portal. Select the virtual network your app connects to. Under the routing section, add the address range of the virtual network that's peered with the virtual network your app is connected to.

How many apps can I run on Azure App Service plan? ›

Usage TiersFree Try for freePremium Enhanced performance and scale
Web, mobile, or API apps10Unlimited
Disk space1 GB250 GB
Maximum instancesUp to 30*
Custom domainSupported
5 more rows

How do I deploy Web API to Azure App Service? ›

Publish the web API to Azure App Service
  1. In Solution Explorer, right-click the project and select Publish.
  2. In the Publish dialog, select Azure and select the Next button.
  3. Select Azure App Service (Windows) and select the Next button.
  4. Select Create a new Azure App Service. ...
  5. Select the Create button.
Nov 3, 2022

Which Azure service can be used to deploy mobile app? ›

We can deploy our mobile backend services on Azure using Azure Mobile apps. By implementing our mobile backend service on Azure, our mobile backend will be able to communicate with different Azure services. We can able to take advantage of various features that are provided by Azure Mobile Apps.

How does Python connect to Azure Database? ›

Connecting to SQL Azure from Python using ODBC Driver for SQL Azure
  1. Step 1: Connect. import pyodbc cnxn = pyodbc.connect('DRIVER={Devart ODBC Driver for SQLAzure};Server=myserver;Database=mydatabase;Port=myport;User ID=myuserid;Password=mypassword')
  2. Step 2: Insert a row. ...
  3. Step 3: Execute query.

How to connect to Azure Postgres database using Python? ›

  1. An Azure account with an active subscription. Create an account for free.
  2. An Azure Database for PostgreSQL - Flexible Server. To create flexible server, refer to Create an Azure Database for PostgreSQL - Flexible Server using Azure portal.
  3. Python 2.7 or 3.6+.
  4. Latest pip package installer.
Sep 20, 2022

What port is used to communicate with Azure Database Postgres? ›

To access Azure Database for PostgreSQL from your local computer, ensure that the firewall on your network and local computer allow outgoing communication on TCP port 5432.

How do I connect to a Postgres database application? ›

Connect and Access PostgreSQL Database Server using psql:
  1. Step 1: Launch SQL Shell (psql) program tool.
  2. Step 2: To use the default value specified in the square bracket [ ], just press Enter and move on to the next line. ...
  3. Step 3: Now, interact with the database server using SQL commands.
Mar 14, 2022

Is Postgres OLTP or OLAP? ›

PostgreSQL is based on 𝐇𝐓𝐀𝐏 (Hybrid transactional/analytical processing) architecture, so it can handle both OLTP and OLAP well.

How do I deploy a PostgreSQL Database in Azure? ›

If you don't have an Azure subscription, create a free Azure account before you begin.
  1. Sign in to the Azure portal. Open your web browser and go to the portal. ...
  2. Create an Azure Database for PostgreSQL server. ...
  3. Get the connection information. ...
  4. Connect to the PostgreSQL database using psql. ...
  5. Clean up resources. ...
  6. Next steps.
Sep 20, 2022

Which type of Database is Azure Database for PostgreSQL? ›

Azure Database for PostgreSQL is a fully-managed database as a service with built-in capabilities, such as high availability and intelligence.

Is Azure Database for PostgreSQL PaaS or SAAS? ›

With Azure, your PostgreSQL Server workloads can run in a hosted virtual machine infrastructure as a service (IaaS) or as a hosted platform as a service (PaaS).

Which is faster Postgres or SQL Server? ›

We mentioned partitioning, and while both PostgreSQL and SQL Server support partitioning, PostgreSQL does so more efficiently and for free. PostgreSQL also has better concurrency, which is important when multiple processes need to access and modify shared data at the same time.

Is Azure Database for PostgreSQL free? ›

You're not charged for Azure Database for PostgreSQL - Flexible Server services that are included for free with your Azure free account unless you exceed the free service limits.

How do I run a Django project in a virtual environment? ›

To set up a virtual environment, use the following steps.
  1. Install Package. First, install python3-venv package by using the following command.
  2. Create a Directory. $ mkdir djangoenv. ...
  3. Create Virtual Environment. $ python3 -m venv djangoenv. ...
  4. Activate Virtual Environment.

Why PostgreSQL is good with Django? ›

Benefits of using PostgreSQL with Django

Django has django. contrib. postgres to make database operations on PostgreSQL. If you are building an application with maps or you are storing geographical data, you need to use PostgreSQL, as GeoDjango is only fully compatible with PostgreSQL.

Is PostgreSQL good for Django? ›

Django officially supports the following databases: PostgreSQL. MariaDB. MySQL.

How does Django integrate with existing database? ›

Integrating with a Legacy Database
  1. Create a Django project by running django-admin.py startproject mysite (where mysite is your project's name). ...
  2. Edit the settings file in that project, mysite/settings.py , to tell Django what your database connection parameters are and what the name of the database is.

How do I connect Microsoft SQL Server to Django? ›

Connect to SQL Database from Django app:
  1. Download Python installer. Install Python3 if your machine does not have it. Visit Python download page.
  2. Install and verify Python. a. Double click the installer, follow instructions on the screen. b. After finished install. Run py -V in command line to verify it.
Apr 29, 2021

How does Django interact with database? ›

Django uses the database with the alias of default when no other database has been selected. If you attempt to access a database that you haven't defined in your DATABASES setting, Django will raise a django. utils. connection.

What is the best way to connect your Azure VM to your Azure SQL Database? ›

First, connect to the SQL Server virtual machine with remote desktop. After the Azure virtual machine is created and running, click the Virtual Machines icon in the Azure portal to view your VMs. Click the ellipsis, ..., for your new VM. Click Connect.

How do I connect Azure SQL Database to Web app? ›

Create a server and database
  1. In the Publish dialog, scroll down to the Service Dependencies section. ...
  2. Select Azure SQL Database and click Next.
  3. In the Configure Azure SQL Database dialog, click +.
  4. Next to Database server, click New. ...
  5. Add an administrator username and password. ...
  6. Click OK.
Sep 21, 2022

How do I connect to Azure app service to database? ›

Choosing the "Allow access to Azure services" option will allow the app service to connect to the MySQL server.
  1. On the MySQL server blade, under the Settings heading, click Connection Security to open the Connection Security blade for Azure Database for MySQL.
  2. Select ON in Allow access to Azure services, then Save.
Sep 29, 2022

What is the disadvantage of Django? ›

One of the main disadvantages or cons of using Django for web app development is it presents a steep and deep learning curve to budding and novice developers and designers. Even though it is a clear and simple framework developed using python language. It can make things difficult to learn for inexperienced developers.

Should I use PostgreSQL or MySQL for Django? ›

Django provides support for a number of data types which will only work with PostgreSQL. There is no fundamental reason why (for example) a contrib. mysql module does not exist, except that PostgreSQL has the richest feature set of the supported databases so its users have the most to gain.”

What is the limitation of Django? ›

Not for smaller projects. All the functionality of Django comes with lots of code. It takes server's processing and time, which poses some issues for low-end websites which can run on even very little bandwidth.

What is the best way to deploy Django app? ›

You can use Visual Studio Code or your favorite text editor.
  1. Step 1: Creating a Python Virtual Environment for your Project. ...
  2. Step 2: Creating the Django Project. ...
  3. Step 3: Pushing the Site to GitHub. ...
  4. Step 4: Deploying to DigitalOcean with App Platform. ...
  5. Step 5: Deploying Your Static Files.
Sep 29, 2021

Is Django getting outdated? ›

Even though Django never got to the same level of popularity as Ruby, it has managed to grow over the years. I've personally been using it for over 15 years. Version 3.1 was recently released as of a few months ago. Some of the largest websites in the world using Django are Instagram, Pinterest & Mozilla.

Is NASA using Django? ›

5. NASA. The website of the United States National Aeronautics and Space Administration (NASA) is built using Django.

Do professionals use Django? ›

Django is a Python-based web framework giving developers the tools they need for rapid, hassle-free development. You can find that several major companies employ Django for their development projects. Here are 9 global companies using Django: Instagram.

Does Django use MVC or MVT? ›

From IDEA to Product Using Python / Django

And like most modern framework, Django supports the MVC pattern. First let's see what is the Model-View-Controller (MVC) pattern, and then we will look at Django's specificity for the Model-View-Template (MVT) pattern.

Which code editor is best for Django? ›

Visual Studio Code

VS Code is a complete code editor with premium features and many coders say it's the best IDE editor out there. Compatibility: Windows, Linux, Mac OS. Top plugins and features: Built-in git.

How do I deploy react and Django app in Azure? ›

What are we going to do?
  1. Install packages and configure variables We install packages needed for production and add a . ...
  2. Create requirements. ...
  3. Make changes to our settings. ...
  4. Make sure that the production settings are used in deployment.
  5. Push code updates to GitHub.
  6. Pushing our code to Azure.
  7. Migrating our database schema.
Nov 7, 2022

How do I deploy Django to app Engine? ›

  1. Prepare your environment.
  2. Create backing services.
  3. Run the app on your local computer.
  4. Use the Django admin console.
  5. Deploy the app to the App Engine standard environment.
  6. Updating the application.
  7. Configuring for production.
  8. Understand the code.

How do I deploy Django? ›

Create a site administrator
  1. Initialize your Django application's local database. ...
  2. Run manage.py createsuperuser to create an administrator. ...
  3. Run manage.py collectstatic to populate the static directory with static assets (JavaScript, CSS, and images) for the admin site. ...
  4. Deploy your application.

Where to deploy Django? ›

Large-scale Django web hosting companies
  • Amazon Web Services (AWS)
  • Azure (Microsoft)
  • Google Cloud Platform.
  • Hetzner.
  • DigitalOcean.
  • Heroku.
Dec 30, 2022

How to connect Azure SQL database in Django? ›

Configure Azure SQL connectivity with Django App
  1. Install ODBC driver: Instructions.
  2. Install pyodbc: Python Copy. pip install pyodbc.
  3. Install mssql-django: Python Copy. pip install mssql-django.
May 4, 2022

Can you use Django with Azure? ›

The Django sample application configures settings in the azureproject/production.py file so that it can run in Azure App Service. These changes are common to deploying Django to production, and not specific to App Service.


1. First Experiences with Azure Database for PostgreSQL Flexible Server | Citus Con 2022
(Microsoft Developer)
2. How to develop apps with Microsoft Azure Database for PostgreSQL | Azure Tips and Tricks
(Microsoft Azure)
3. Building resilient, mission-critical apps with Azure Database for PostgreSQL | Open Azure Day
(Microsoft Azure)
4. How to develop apps with Microsoft Azure Database for PostgreSQL | Azure Tips and Tricks
(Microsoft Azure)
5. New innovations on Azure Database for MySQL and Azure Database for PostgreSQL to turbo | DB119
(Microsoft Ignite)
6. Top 10 reasons to choose Flexible Server for Azure Database for PostgreSQL | Citus Con 2022
(Microsoft Developer)
Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated: 04/07/2023

Views: 6519

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.