{"id":80896,"date":"2021-06-14T09:00:13","date_gmt":"2021-06-14T03:30:13","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=80896"},"modified":"2021-06-14T09:00:13","modified_gmt":"2021-06-14T03:30:13","slug":"django-installation","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/django-installation\/","title":{"rendered":"Step by Step Procedure to Install Django"},"content":{"rendered":"<p>As you have decided to start your journey with Django, let\u2019s discuss the steps to install it.<\/p>\n<p>Django is an open-source web framework of Python. It is designed for building complex and dynamic websites with utmost ease. This framework provides the features of DRY, free flow coding, and Object Relational mapping which ensures the rapid development of the applications. So it is a great web framework to start with.<\/p>\n<p>So follow the steps mentioned below to have an error-free installation.<\/p>\n<h3>Steps to Install Django<\/h3>\n<p>Get ready with a stable internet connection and your desktop\/laptop to dive into the journey.<\/p>\n<h4>Step 1: Installing Python version(3.9.5)<\/h4>\n<p><strong>Step 1.1:<\/strong><\/p>\n<p>As you know, Django is Python\u2019s web framework, so you first need to <a href=\"https:\/\/www.python.org\/\">install Python<\/a> on your system.<\/p>\n<p>Click the Downloads button shown below and choose the operating system installed on your computer. Below installation is performed for windows users.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80958\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.1.png\" alt=\"Python installation\" width=\"1920\" height=\"1028\" \/><\/a><\/p>\n<p><strong>Step 1.2:<\/strong><\/p>\n<p>It will take you to the next page, where on the top you will find the Latest Python 3 release(highlighted in blue).<br \/>\nClick the link to download version 3.9.5. This is the latest version of Python available now.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80959\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.2.png\" alt=\"Python installation Step 2\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<p><strong>Step 1.3:<\/strong><\/p>\n<p>After clicking on that link, it will take you to the next page. Just scroll down and you will find \u201cFiles\u201d. You will find multiple download options.<\/p>\n<p>If you are using a Windows 64-bit system choose the last option( Windows installer (64-bit)), and choose Windows installer (32-bit) if you are using a 32-bit system.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80960\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.3.png\" alt=\"Install Python\" width=\"1920\" height=\"1028\" \/><\/a><\/p>\n<p><strong>Step 1.4:<\/strong><\/p>\n<p>It will take a few seconds for the downloads.<\/p>\n<p>Once the download is complete, it will launch a setup window. Here, make sure to tick the checkbox given extreme below, showing \u201cAdd Python 3.9 to PATH\u201d.<\/p>\n<p>Then click on the \u201cInstall Now\u201d option as shown below in the image.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80961\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.4.png\" alt=\"Install python\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<p><strong>Step 1.5:<\/strong><\/p>\n<p>After clicking the \u201cInstall Now\u201d option a warning message will appear on your screen, \u201cDo you want to make changes in your system\u201d, click on yes.<\/p>\n<p>After that this window will appear as shown below. It will take some time for installation.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80962\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.5.png\" alt=\"Python Setup\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<p><strong>Step 1.6:<\/strong><\/p>\n<p>Congratulations!, your setup is complete. You will see the below window.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80964\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.6.png\" alt=\"Python Setup\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<p><strong>Step 1.7:<\/strong><\/p>\n<p>To check whether Python is successfully installed or not, open the Window PowerShell. You can search it by typing the same in the window search(as shown below).<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80963\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.7.png\" alt=\"Python Setup\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<p><strong>Step 1.8:<\/strong><\/p>\n<p>Type <strong>python &#8211;version<\/strong> in PowerShell. As shown below it will display the latest downloaded version i.e. \u201cPython 3.9.5\u201d.<\/p>\n<p>You can also check the version of pip installed by typing <strong>pip &#8211;version<\/strong>, it will display the pip version.<\/p>\n<p>Pip is used to download other packages in the Python environment. We will use it while working with Django too.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80965\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Python_installation-_1.8.png\" alt=\"Check Python Version\" width=\"1920\" height=\"1028\" \/><\/a><\/p>\n<h3>Step 2: Setting up Virtual Environment and Installing Django<\/h3>\n<p><strong>Step 2.1<\/strong><\/p>\n<p>The virtual environment creates an isolated environment for Python projects, which means every project can have its dependencies. Whatever installation you do in the virtual environment will not affect the rest of the system.<\/p>\n<p>Restart the Window PowerShell window and type <strong>pip install virtualenvwrapper-win<\/strong>. It will take some time to install the virtual wrapper environment in windows or display the message shown below if it is already installed.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/image6-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80971\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/image6-8.png\" alt=\"Django Virtual Environment Setup\" width=\"1920\" height=\"1028\" \/><\/a><\/p>\n<p><strong>Step 2.2<\/strong><\/p>\n<p>The next step is to create a virtual environment for your Django project.<\/p>\n<p>Type \u201c <strong>mkvirtualenv DjangoPRoject<\/strong>\u201d or \u201c<strong>py -3 -m venv DjangoProject<\/strong>\u201d, whatever works for your system.<\/p>\n<p>It will create a virtual environment.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Setting-up-Virtual-Environment-_2.2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80967\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Setting-up-Virtual-Environment-_2.2.png\" alt=\"Django Setup\" width=\"1920\" height=\"1029\" \/><\/a><\/p>\n<p><strong>Step 3: Install Django<\/strong><\/p>\n<p>Now finally it\u2019s time to download Django.<\/p>\n<p>Type <strong>pip install Django<\/strong> in the PowerShell as shown below.<\/p>\n<p>Now Django is installed on your system. You can check the version of Django by typing <strong>Django -admin &#8211;version<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Install_Django_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80969\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Install_Django_03.png\" alt=\"Install Django\" width=\"1920\" height=\"1028\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>So that was it. Now you are all set to use this fantastic framework to build your projects. Turn your imaginations into reality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you have decided to start your journey with Django, let\u2019s discuss the steps to install it. Django is an open-source web framework of Python. It is designed for building complex and dynamic websites&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":80957,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3383],"tags":[3532,3533],"class_list":["post-80896","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-django","tag-django-installation","tag-install-django"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Step by Step Procedure to Install Django - TechVidvan<\/title>\n<meta name=\"description\" content=\"Django Installation Tutorial - In this tutorial, you&#039;ll learn how to install Django in easy steps and set up your project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/django-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Step by Step Procedure to Install Django - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Django Installation Tutorial - In this tutorial, you&#039;ll learn how to install Django in easy steps and set up your project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/django-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-14T03:30:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Step by Step Procedure to Install Django - TechVidvan","description":"Django Installation Tutorial - In this tutorial, you'll learn how to install Django in easy steps and set up your project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/django-installation\/","og_locale":"en_US","og_type":"article","og_title":"Step by Step Procedure to Install Django - TechVidvan","og_description":"Django Installation Tutorial - In this tutorial, you'll learn how to install Django in easy steps and set up your project.","og_url":"https:\/\/techvidvan.com\/tutorials\/django-installation\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-06-14T03:30:13+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Step by Step Procedure to Install Django","datePublished":"2021-06-14T03:30:13+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/"},"wordCount":614,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg","keywords":["Django Installation","Install Django"],"articleSection":["Django Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/django-installation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/","url":"https:\/\/techvidvan.com\/tutorials\/django-installation\/","name":"Step by Step Procedure to Install Django - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg","datePublished":"2021-06-14T03:30:13+00:00","description":"Django Installation Tutorial - In this tutorial, you'll learn how to install Django in easy steps and set up your project.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/django-installation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Django-Insatalltion.jpg","width":1200,"height":628,"caption":"Install Django"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/django-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Step by Step Procedure to Install Django"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/80896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=80896"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/80896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/80957"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=80896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=80896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=80896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}