CHAPTER 9Deploy a Django App to Azure App Service with the Azure App Service Extension
Django is a free open-source Python web framework for developing web apps. The framework encourages rapid development by providing the architecture to create database-connected web apps and thus enabling developers to focus more on writing the app. The framework's primary strength is how it manages data models and database connectivity. Each model maps to a single database table that can be leveraged to store data for your app. By default, the database configuration uses SQLite. However, Django also supports the following relational databases: PostgreSQL, MariaDB, MySQL, and Oracle.
In this project, you’ll learn how to create a Django project in Visual Studio Code and deploy to production with Azure App Service. To get started with Azure, refer to the appendix, “Getting Started with Azure.”
This project provides a high-level overview of how to set up a Django project in preparation for deploying the app to Azure. Sample code is provided in the Django-website
folder to help expediate the app creation. For a detailed review of how to create and manage a Django project, visit djangoproject.com
.
Getting Started
The project example in this chapter uses the Django framework to create a website that is deployed to Azure App Service (see Figure 9.1). The website template is provided by Start Bootstrap, a resource for free, open-source, MIT-licensed Bootstrap themes, templates, and code snippets. ...
Get Visual Studio Code for Python Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.