{"id":4532,"date":"2018-06-06T17:36:50","date_gmt":"2018-06-06T17:36:50","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/06\/06\/installing-django-2-0-centos\/"},"modified":"2023-12-22T14:55:38","modified_gmt":"2023-12-22T19:55:38","slug":"installing-django-2-0-centos","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/","title":{"rendered":"Installing Django 2.0 CentOS"},"content":{"rendered":"<p>Django is an open-source framework written in python for quickly building web applications. Django includes user authentication, content management, sites maps, and several other features by default to make it easier and faster for developers to build their applications. In this article, we will show you how to install a Django.<\/p>\n<div class=\"alert alert-warning\" role=\"alert\">You must have a VPS or Dedicated server with root access for this tutorial.<\/div>\n<h3>Installing Django on CentOS<\/h3>\n<ol class=\"article_list\">\n<li>First you will need the EPEL repository to install the necessary packages.\n<pre>sudo yum install epel-release\nsudo yum update -y<\/pre>\n<\/li>\n<li>Then you need to install some python packages.\n<pre>sudo yum install python-devel python-setuptools python-pip\npip install mysql-python virtualenv<\/pre>\n<\/li>\n<li>Next you need to create a virtual environment for your project, The purpose of this is to isolate the packages used by this project to prevent any other packages installed for other projects from causing conflicts.\n<pre>cd ~\nvirtualenv django1<\/pre>\n<\/li>\n<li>Now enter the virtual environment and install django.\n<pre>source ~\/django1\/bin\/activate\npip install django<\/pre>\n<\/li>\n<li>Now that you have Django installed you can create your project.\n<pre>django-admin startproject project1<\/pre>\n<p>Now that you have created the project run the commands below and follow the prompts to create your admin user for the Django dashboard.<\/p>\n<pre>python manage.py migrate\npython manage.py createsuperuser\npython manage.py runserver 0.0.0.0:8000\n<\/pre>\n<p>You should now be able to go to https:\/\/&lt;yourIP&gt;:8000 and you should see a page saying &#8220;It Worked, Congratulations on your first Django-powered page&#8221;. You can view your dashboard going to https:\/\/&lt;yourIP&gt;:8000\/admin and logging in with the credentials created before.<\/li>\n<\/ol>\n<p>Congratulations! You now have Django installed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django is an open-source framework written in python for quickly building web applications. Django includes user authentication, content management, sites maps, and several other features by default to make it easier and faster for developers to build their applications. In this article, we will show you how to install a Django. You must have a<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\"> Read More ><\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4360],"tags":[],"class_list":["post-4532","post","type-post","status-publish","format-standard","hentry","category-software"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing Django 2.0 CentOS | InMotion Hosting<\/title>\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.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Django 2.0 CentOS | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Django is an open-source framework written in python for quickly building web applications. Django includes user authentication, content management, sites maps, and several other features by default to make it easier and faster for developers to build their applications. In this article, we will show you how to install a Django. You must have a Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-06T17:36:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-22T19:55:38+00:00\" \/>\n<meta name=\"author\" content=\"Kyle McClammy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kyle McClammy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\"},\"author\":{\"name\":\"Kyle McClammy\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8c49132ed3eeb8593005b332e002c8b5\"},\"headline\":\"Installing Django 2.0 CentOS\",\"datePublished\":\"2018-06-06T17:36:50+00:00\",\"dateModified\":\"2023-12-22T19:55:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\"},\"wordCount\":224,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Software\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\",\"name\":\"Installing Django 2.0 CentOS | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-06-06T17:36:50+00:00\",\"dateModified\":\"2023-12-22T19:55:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Django 2.0 CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8c49132ed3eeb8593005b332e002c8b5\",\"name\":\"Kyle McClammy\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/kylem\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Django 2.0 CentOS | InMotion Hosting","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.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/","og_locale":"en_US","og_type":"article","og_title":"Installing Django 2.0 CentOS | InMotion Hosting","og_description":"Django is an open-source framework written in python for quickly building web applications. Django includes user authentication, content management, sites maps, and several other features by default to make it easier and faster for developers to build their applications. In this article, we will show you how to install a Django. You must have a Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-06-06T17:36:50+00:00","article_modified_time":"2023-12-22T19:55:38+00:00","author":"Kyle McClammy","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Kyle McClammy","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/"},"author":{"name":"Kyle McClammy","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8c49132ed3eeb8593005b332e002c8b5"},"headline":"Installing Django 2.0 CentOS","datePublished":"2018-06-06T17:36:50+00:00","dateModified":"2023-12-22T19:55:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/"},"wordCount":224,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Software"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/","name":"Installing Django 2.0 CentOS | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-06-06T17:36:50+00:00","dateModified":"2023-12-22T19:55:38+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/installing-django-2-0-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Installing Django 2.0 CentOS"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8c49132ed3eeb8593005b332e002c8b5","name":"Kyle McClammy","url":"https:\/\/www.inmotionhosting.com\/support\/author\/kylem\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4360,"name":"Software","slug":"software","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4532"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4532\/revisions"}],"predecessor-version":[{"id":108528,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4532\/revisions\/108528"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}