


This tutorial does not explore various details about Django itself, such as working with data models and creating an administrative interface. You create this app in the context of Visual Studio Code in order to understand how to work with Django in the VS Code terminal, editor, and debugger. In this Django tutorial, you create a simple Django app with three pages that use a common base template. Django includes rich support for URL routing, page templates, and working with data.

Select Install Into A Virtual Environment. Select File > New > Project > Python > Django Web Project template.Īfter clicking the OK button, Visual Studio will show a dialog box saying Th is project requires external packages. On Mac and Linux, use the Python extension in Visual Studio Code. Note: At the time of writing this post, Python development is not supported in Visual Studio for Mac. Assuming you have installed Python Support in your IDE, let’s dive into the topic. In this tutorial, I’ll be using Visual Studio Community edition 2017. I’ve been using Visual Studio for the past few years and it’s the best IDE I’ve ever used. It is used to develop computer programs for Microsoft Windows, as well as web sites, web apps, web services, and mobile apps. Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft.

If you wish to create the project manually or you want to use any other text editor, please read this post about creating a Django project manually. This post is about creating a Django project in Visual Studio.
