{"id":1553,"date":"2021-08-30T12:30:00","date_gmt":"2021-08-30T17:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1553"},"modified":"2021-07-05T09:52:48","modified_gmt":"2021-07-05T14:52:48","slug":"how-to-install-django-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/","title":{"rendered":"How to Install Django on Ubuntu 20.04"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04.png\"><img decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04-970x441.png\" alt=\"installing django on ubuntu 20.04\" class=\"wp-image-1556\" width=\"157\" height=\"70\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04-970x441.png 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04-470x214.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04-768x349.png 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/installing-django-on-ubuntu-20.04.png 1200w\" sizes=\"(max-width: 157px) 100vw, 157px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure web applications. Django web framework is built by experienced developers and used, tested, and enhanced for more than a decade by a very active community. It is used by some of the largest websites and online communities around the world, which makes it one of the most popular and widely used full-stack Python web frameworks.<\/p>\n\n\n\n<p>In this tutorial we will guide you through the steps of installing Django on an Ubuntu 20.04 VPS.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>We can install Django on Ubuntu 20.04 using few different methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>From the official Ubuntu 20.04 repository<\/li><li>Install the latest development version from Git<\/li><li>Install through pip in a virtual environment<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Ubuntu 20.04 VPS or Cloud Dedicated Server. In this tutorial we will use a VPS with the SSD 2 VPS hosting plan.<\/li><li>System user with sudo privileges.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-django-from-repository\"><strong>Install Django from repository<\/strong><\/h2>\n\n\n\n<p>We can install Django from the official Ubuntu 20.04 repository maintained by Canonical. This is pretty easy and straightforward method of installing Django, as all dependencies will be automatically installed globally for all users on the server. It is worth mentioning that we can install a single version by the repository and often it is not the latest release of the framework.<\/p>\n\n\n\n<p>In order to install Django on your Ubuntu 20.04, make sure that the system is up to date. Run the following commands to update the package index and install all available upgrades for the packages installed on your VPS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update &amp;&amp; apt upgrade<\/pre>\n\n\n\n<p>As we already mentioned, Django is Pythhon-based web framework and we need to have Python installed on the VPS. Ubuntu 20.04 comes with Python 3.8 by default. Run the following command to check what version of Python we\u2019ve installed:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python -V&lt;br&gt;Python 3.8.5<\/pre>\n\n\n\n<p>Once we confirm that Python 3.8 is installed, we can proceed and install Django. We can easily done it by running this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt -y install python3-django<\/pre>\n\n\n\n<p>After the installation of all packages i done, verify the Django installation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">django-admin --version&lt;br&gt;2.2.12<\/pre>\n\n\n\n<p>We have successfully installed Django version 2.2.12 , and we can start working on our first Django project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-django-from-git-repository\"><strong>Install Django from Git Repository<\/strong><\/h2>\n\n\n\n<p>The next method we will explain is how to install Django from their Git repository. The Git repository of the Django project contains the latest development version of Django, so if you need all latest features, improvements and bug fixes you should use this method.<\/p>\n\n\n\n<p>First, install Git from the Ubuntu repositories:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt -y install git<\/pre>\n\n\n\n<p>We have to install Django inside Python virtual environment, so let\u2019s install the necessary Python packages:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install python3-pip python3-venv<\/pre>\n\n\n\n<p>Clone the Django repository from their Github account to the \u2018\/opt\/django\u2019 directory on your server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone git:\/\/github.com\/django\/django \/opt\/django<\/pre>\n\n\n\n<p>Change the working directory and create Python virtual environment inside it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/opt\/django\/ &amp;&amp; python3 -m venv django_venv<\/pre>\n\n\n\n<p>Activate the virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source django_venv\/bin\/activate<\/pre>\n\n\n\n<p>Install the development version of Django using the package management system \u2013 pip:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_venv) # pip install -e ..\/django\/<\/pre>\n\n\n\n<p>If the installation is successful you should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Successfully installed Django asgiref-3.4.0 pytz-2021.1 sqlparse-0.4.1<\/pre>\n\n\n\n<p>Check the installed version of Django:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_venv) # django-admin --version&lt;br&gt;4.0.dev20210630080855<\/pre>\n\n\n\n<p>As you can notice, the version installed from Git repository is much newer than the one installed from the official Ubuntu repository.<\/p>\n\n\n\n<p>Deactivate the Python virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_venv) # deactivate<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-django-with-pip-in-a-virtual-environment\"><strong>Install Django with pip in a virtual environment<\/strong><\/h2>\n\n\n\n<p>When we install Python some module, including Django it is always recommended to install it inside a virtual environment, because it will not affect the other packages and modules installed on the server. You can have different virtual environments, with separate modules and version for every Python project on your server.<\/p>\n\n\n\n<p>First of all, check if we have Python installed on the server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python -V&lt;br&gt;Python 3.8.5<\/pre>\n\n\n\n<p>Install the necessary packages for creating the virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt -y install python3-pip python3-virtualenv<\/pre>\n\n\n\n<p>Create new Python virtual environment for Django:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">virtualenv \/opt\/django_environment<\/pre>\n\n\n\n<p>Activate the newly created virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/opt\/django_environment &amp;&amp; source bin\/activate<\/pre>\n\n\n\n<p>Install Django with pip using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_environment) # pip install django<\/pre>\n\n\n\n<p>One of the advantages of installing Django with pip, you can specify what version of Django you will install. For example, if we need Django version 3.2.4 we can install it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_environment) # pip install django==3.2.4<\/pre>\n\n\n\n<p>Check the installed version:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_environment) # django-admin --version&lt;br&gt;3.2.4<\/pre>\n\n\n\n<p>Deactivate the virtual environment:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(django_venv) # deactivate<\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04.png\"><img decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04-970x441.png\" alt=\"install django on ubuntu 20.04\" class=\"wp-image-1557\" width=\"204\" height=\"92\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04-970x441.png 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04-470x214.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04-768x349.png 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/install-django-on-ubuntu-20.04.png 1200w\" sizes=\"(max-width: 204px) 100vw, 204px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Of course, you don\u2019t have to Install Django on Ubuntu 20.04 VPS if you use one of our <a href=\"https:\/\/www.linuxcloudvps.com\/\" title=\"https:\/\/www.linuxcloudvps.com\/\">Django VPS Hosting<\/a> plans, in which case you can simply ask our expert Linux admins to install Django on your Ubuntu VPS for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n\n\n\n<p>PS. If you liked this post on how to install Django on Ubuntu 20.04 VPS, please share it with your friends on the social networks or simply leave a reply in the comments sections. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure web applications. Django web framework is built by experienced developers and used, tested, and enhanced for more than a decade by a very active community. It is used by some of the largest websites &#8230; <a title=\"How to Install Django on Ubuntu 20.04\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/\" aria-label=\"More on How to Install Django on Ubuntu 20.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,205],"tags":[175,210],"class_list":["post-1553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu-20-04","tag-django","tag-ubuntu-20-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-30T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install Django on Ubuntu 20.04\",\"datePublished\":\"2021-08-30T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/\"},\"wordCount\":736,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/how-to-install-django-on-ubuntu-20.04.jpg\",\"keywords\":[\"django\",\"ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu 20.04\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/\",\"name\":\"How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/how-to-install-django-on-ubuntu-20.04.jpg\",\"datePublished\":\"2021-08-30T17:30:00+00:00\",\"description\":\"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/how-to-install-django-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/how-to-install-django-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install django on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-django-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Django on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog","description":"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure","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:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog","og_description":"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2021-08-30T17:30:00+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install Django on Ubuntu 20.04","datePublished":"2021-08-30T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/"},"wordCount":736,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg","keywords":["django","ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu 20.04"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/","name":"How to Install Django on Ubuntu 20.04 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg","datePublished":"2021-08-30T17:30:00+00:00","description":"Django is a free and open-source, Python-based web framework that allows developers to quickly and efficiently create feature-rich, scalable, and secure","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-install-django-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install django on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-django-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Django on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1553"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1553\/revisions"}],"predecessor-version":[{"id":1559,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1553\/revisions\/1559"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/1554"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}