Skip to main content

Deploy Django on Azure

This page explains how to deploy on Azure a simple Django Starter generated by the service using DeployPRO, a popular deployment service.

Here are the steps (summary)

  • Access DeployPRO and register using GitHub
  • Connect your Azure account
  • Create a new VPS Server and wait the full deployment
  • Create a new app or simply fork this sample:
  • Complete the deployment form
  • Confirm the deployment
  • Access the GitHub repository and monitor the progress (GitHub Actions)
  • Visit the app in the browser.

Access DeployPRO

The service allows the registration using GitHub (no password required)

DeployPRO - Registration Page

Connect Azure

In the connections page, users can connect to Azure via credentials.

DeployPRO - Azure Credentials

If the operation is successfull, the connection to Azure is falled as active.

DeployPRO - Azure Connection Active

Create new Server

Before deploying the project, a deployment server needs to be created. This operation takes aprox. 5 minutes.

DeployPRO - Create Azure Server

Once created, we can access the default page and also check out the details in our Azure account:

DeployPRO - Azure Server, the default page.

Server Information (Azure)

DeployPRO - New Azure Server (on Azure)

The server state can be also checked on DeployPRO.

DeployPRO - New Azure Server (on DeployPRO)

Deploy Django

In this phase, the user needs to provide:

  • the repository
  • app name
  • path to the Dockerfile
  • the PORT exposed in Docker (execution entry point)
  • the DeployPRO subdomain

DeployPRO - Azure & Django, App information

DeployPRO - Azure & Django, App information in Full

Once the operation is confirmed, DeployPRO will analyze the input and update the repository with all the necessary scripts for the LIVE deployment.

DeployPRO - Deploy Django on Azure, via GitHub Action.

DeployPRO - Deploy Django on Azure (GitHub Action) CI-CD flow completed.

Access the APP (browser)

At this point, the Django App should be fully deployed on Azure, with an active CI/CD flow:

DeployPRO - Django Starter fully deployed on Azure (CI/CD flow active)