{"id":42376,"date":"2022-08-17T12:30:18","date_gmt":"2022-08-17T17:30:18","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=42376"},"modified":"2022-10-05T01:19:32","modified_gmt":"2022-10-05T06:19:32","slug":"how-to-install-django-web-framework-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/","title":{"rendered":"How to Install Django Web Framework on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-42750\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\" alt=\"how to install django web framework on ubuntu 22.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this blog post, we are going to show you how to install <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Django Web Framework on Ubuntu 22.04<\/a> OS.<\/p>\n<p>Django is a free and open-source web framework written in Python that follows the MVT(Model-View-Template) architectural pattern. The framework is written for developers to make complex and database-driven websites using predefined administrative actions like create, update, delete, and read. In this tutorial, we are going to install Django Web Framework in an isolated and encapsulated environment called python virtual environment.<\/p>\n<p>Installing Django Web Framework is a straightforward process that can take up to 15 minutes. Let&#8217;s get things working!<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ece9c76f29c\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ece9c76f29c\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-1-Update-the-System\" >Step 1. Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-2-Install-Python\" >Step 2. Install Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-3-Install-Django-Web-Framework\" >Step 3. Install Django Web Framework<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-4-Create-Django-Project\" >Step 4. Create Django Project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-5-Migrate-Django-Database\" >Step 5. Migrate Django Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-6-Create-Django-Superuser\" >Step 6. Create Django Superuser<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#Step-7-Start-Django-Project\" >Step 7. Start Django Project<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A server with Ubuntu 22.04 as OS<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We need to update the system packages to the latest versions available.<\/p>\n<pre>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Python\"><\/span>Step 2. Install Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we can install the latest python version, we need to install some python dependencies:<\/p>\n<pre>apt install software-properties-common -y\r\n\r\nsudo add-apt-repository ppa:deadsnakes\/ppa -y\r\n\r\napt update\r\n<\/pre>\n<p>Once the python dependencies are installed, we can install the latest python3.10 version with the command below:<\/p>\n<pre>sudo apt install python3.10 -y<\/pre>\n<p>Once installed, we can check the full python version:<\/p>\n<pre>python3 --version<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# python3 --version\r\nPython 3.10.4<\/pre>\n<p>Now, when the latest version of Python is installed, we can install the Python Virtual Environment required for Django Web Framework to run smoothly and isolated from other libraries on the server.<\/p>\n<p>To install Python Virtual Environment execute the command below:<\/p>\n<pre>sudo apt install python3-pip python3.10-venv -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Django-Web-Framework\"><\/span>Step 3. Install Django Web Framework<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, we can create a python virtual environment and install the Django framework. To create and activate a virtual environment in some directory on your server, follow the steps below:<\/p>\n<pre>cd \/opt\r\n\r\npython3 -m venv django-venv\r\n\r\nsource django-venv\/bin\/activate\r\n<\/pre>\n<p>Once the virtual environment is created and activated, you should see the following output:<\/p>\n<pre>root@vps:\/opt# python3 -m venv django-venv\r\nroot@vps:\/opt# source django-venv\/bin\/activate\r\n(django-venv) root@vps:\/opt#\r\n<\/pre>\n<p>To install Django Admin in the virtual environment, execute the command below:<\/p>\n<pre>pip3 install django<\/pre>\n<p>To verify that the installation is successful and the Django admin version executes the following command:<\/p>\n<pre>django-admin --version<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>(django-venv) root@vps:\/opt# django-admin --version\r\n4.0.5<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Create-Django-Project\"><\/span>Step 4. Create Django Project<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, when the virtual environment is created, we can create a new project using the Django-admin with the start project command as described below:<\/p>\n<pre>django-admin startproject djangoproject .<\/pre>\n<p>Once the Django project is created, list the directory with the <b>ls -al<\/b> command, and you should see the following output:<\/p>\n<pre>(django-venv) root@vps:\/opt# ls -al\r\ntotal 20\r\ndrwxr-xr-x  4 root root 4096 Jun 18 13:02 .\r\ndrwxr-xr-x 19 root root 4096 Jun  5 11:14 ..\r\ndrwxr-xr-x  2 root root 4096 Jun 18 13:02 djangoproject\r\ndrwxr-xr-x  5 root root 4096 Jun 18 09:25 django-venv\r\n-rwxr-xr-x  1 root root  669 Jun 18 13:02 manage.py\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Migrate-Django-Database\"><\/span>Step 5. Migrate Django Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The next step is to migrate the Django database using the command below:<\/p>\n<pre>python3 manage.py migrate<\/pre>\n<p>After successful migration you should receive the following output:<\/p>\n<pre>(django-venv) root@vps:\/opt# python3 manage.py migrate\r\nOperations to perform:\r\n  Apply all migrations: admin, auth, contenttypes, sessions\r\nRunning migrations:\r\n  Applying contenttypes.0001_initial... OK\r\n  Applying auth.0001_initial... OK\r\n  Applying admin.0001_initial... OK\r\n  Applying admin.0002_logentry_remove_auto_add... OK\r\n  Applying admin.0003_logentry_add_action_flag_choices... OK\r\n  Applying contenttypes.0002_remove_content_type_name... OK\r\n  Applying auth.0002_alter_permission_name_max_length... OK\r\n  Applying auth.0003_alter_user_email_max_length... OK\r\n  Applying auth.0004_alter_user_username_opts... OK\r\n  Applying auth.0005_alter_user_last_login_null... OK\r\n  Applying auth.0006_require_contenttypes_0002... OK\r\n  Applying auth.0007_alter_validators_add_error_messages... OK\r\n  Applying auth.0008_alter_user_username_max_length... OK\r\n  Applying auth.0009_alter_user_last_name_max_length... OK\r\n  Applying auth.0010_alter_group_name_max_length... OK\r\n  Applying auth.0011_update_proxy_permissions... OK\r\n  Applying auth.0012_alter_user_first_name_max_length... OK\r\n  Applying sessions.0001_initial... OK<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Create-Django-Superuser\"><\/span>Step 6. Create Django Superuser<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a Django superuser for managing the Django Admin Dashboard execute the command below:<\/p>\n<pre>python3 manage.py createsuperuser<\/pre>\n<p>After executing the command above, the command prompt will ask you for your username, email, and password. Enter these credentials and you should receive the successful user creation message:<\/p>\n<pre>(django-venv) root@vps:\/opt# python3 manage.py createsuperuser\r\nUsername (leave blank to use 'root'): admin\r\nEmail address: admin@yourdomain.com\r\nPassword:\r\nPassword (again):\r\nSuperuser created successfully.\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Start-Django-Project\"><\/span>Step 7. Start Django Project<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Till now, we installed a virtual environment, installed Django admin and Django project with database migration, and we set the credentials for Django superuser. The final step is to start the Django project via command line on some port so we can access it in the browser.<\/p>\n<p>Before we start the project, we need to open the <b>settings.py<\/b> file and put the server IP address in the <b>ALLOWED HOSTS<\/b> array.<\/p>\n<pre>nano djangoproject\/settings.py<\/pre>\n<p>Paste the IP address in the Allowed Hosts array, save the file and close it.<\/p>\n<pre>ALLOWED_HOSTS = ['YourServerIPAddress']<\/pre>\n<p>To start the Django project on a port, for example <b>8000<\/b>, execute the following command:<\/p>\n<pre>python3 manage.py runserver <b>YOUR_SERVER_IP_ADDRESS:8000<\/b><\/pre>\n<p>Access django project at <b>YOUR_SERVER_IP_ADDRESS:8000<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-42377\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1-1024x595.jpg\" alt=\"\" width=\"1024\" height=\"595\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1-1024x595.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1-300x174.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1-150x87.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1-768x446.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django1.jpg 1053w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Access Admin dashboard at <b>YOUR_SERVER_IP_ADDRESS:8000\/admin\/<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42378\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django2.jpg\" alt=\"\" width=\"489\" height=\"331\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django2.jpg 489w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django2-300x203.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django2-150x102.jpg 150w\" sizes=\"(max-width: 489px) 100vw, 489px\" \/><\/p>\n<p>Login in to the admin dashboard. You should receive the following screen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-42379\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-1024x233.jpg\" alt=\"\" width=\"1024\" height=\"233\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-1024x233.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-300x68.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-150x34.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-768x175.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3-1320x300.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/django3.jpg 1350w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Congratulations, you successfully installed and started Django Web Framework on Ubuntu 22.04 OS<\/p>\n<p>Of course, you do not have to install and configure this setup on your own. You can contact our technical support, and they will help you with installing Django Web Framework. We are available 24\/7<\/p>\n<p>If you liked this post on how to install <a href=\"https:\/\/www.rosehosting.com\/django-hosting\/\">Django<\/a> Web Framework on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Django Web Framework on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#more-42376\" aria-label=\"Read more about How to Install Django Web Framework on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":42750,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1712],"tags":[862,1603,2012],"class_list":["post-42376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-frameworks","tag-django","tag-how-to-install","tag-ubuntu-22-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Django Web Framework on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!\" \/>\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.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-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 Web Framework on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-17T17:30:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-05T06:19:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\" \/>\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\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Django Web Framework on Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Django Web Framework on Ubuntu 22.04\",\"datePublished\":\"2022-08-17T17:30:18+00:00\",\"dateModified\":\"2022-10-05T06:19:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/\"},\"wordCount\":644,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\",\"keywords\":[\"django\",\"how to install\",\"ubuntu 22.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/\",\"name\":\"How to Install Django Web Framework on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\",\"datePublished\":\"2022-08-17T17:30:18+00:00\",\"dateModified\":\"2022-10-05T06:19:32+00:00\",\"description\":\"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-django-web-framework-on-ubuntu-22.04.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install django web framework on ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-django-web-framework-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Django Web Framework on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Django Web Framework on Ubuntu 22.04 | RoseHosting","description":"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!","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.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Django Web Framework on Ubuntu 22.04","og_description":"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-08-17T17:30:18+00:00","article_modified_time":"2022-10-05T06:19:32+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Django Web Framework on Ubuntu 22.04","twitter_description":"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Django Web Framework on Ubuntu 22.04","datePublished":"2022-08-17T17:30:18+00:00","dateModified":"2022-10-05T06:19:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/"},"wordCount":644,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp","keywords":["django","how to install","ubuntu 22.04"],"articleSection":["Tutorials","Ubuntu","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/","name":"How to Install Django Web Framework on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp","datePublished":"2022-08-17T17:30:18+00:00","dateModified":"2022-10-05T06:19:32+00:00","description":"In this blog post, we are going to show you how to install Django Web Framework on Ubuntu 22.04 OS. Learn more about this topic!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-django-web-framework-on-ubuntu-22.04.webp","width":742,"height":372,"caption":"how to install django web framework on ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-django-web-framework-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Django Web Framework on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=42376"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42376\/revisions"}],"predecessor-version":[{"id":43267,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42376\/revisions\/43267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/42750"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=42376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=42376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=42376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}