{"id":240,"date":"2017-12-05T17:43:00","date_gmt":"2017-12-05T16:43:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/2017\/12\/05\/how-to-install-and-setup-python-with-django-very-easy\/"},"modified":"2020-08-22T10:28:48","modified_gmt":"2020-08-22T08:28:48","slug":"how-to-install-and-setup-python-with-django-very-easy","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/how-to-install-and-setup-python-with-django-very-easy\/","title":{"rendered":"How to Install and Setup Python With Django &#8211; Very Easy!"},"content":{"rendered":"<div style=\"color: #555555; font-size: 18px; line-height: 30px; text-align: justify;\">\n<div style=\"font-family: 'segoe ui';\">In this tutorial, I will teach you an easy way to set up Python and Django on Window.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-MRf5fSIa4lI\/Wibaq78_q5I\/AAAAAAAAAWg\/VD1KNJGwc7UXhCIwPGC2yxMj0Rl5fmHrgCLcBGAs\/s1600\/How-to-Set-Up-Python-with-Django.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"962\" data-original-width=\"1590\" height=\"241\" src=\"https:\/\/4.bp.blogspot.com\/-MRf5fSIa4lI\/Wibaq78_q5I\/AAAAAAAAAWg\/VD1KNJGwc7UXhCIwPGC2yxMj0Rl5fmHrgCLcBGAs\/s400\/How-to-Set-Up-Python-with-Django.jpg\" width=\"400\" \/><\/a><\/div>\n<p>With Python, you can write and run Python programs<br \/><b><br \/><\/b><b>What is Django?<\/b><br \/>Django is a Web Framework. This means that it is a collection of tools\/scripts that helps you create web application(application that run on the web)<br \/><b><br \/><\/b><b>What You Would Need<\/b><\/p>\n<ol>\n<li><i>Python Installer:<\/i> You can download this from the Python website<\/li>\n<li>Script <i>ez_setup.py:<\/i> Used to install Setuptools. Download it from <a href=\"http:\/\/code.activestate.com\/pypm\/ez-setup\/\">here<\/a><\/li>\n<li>Script <i>get-pip.py<\/i>: Used to install additional tools to Python. You can get it from <a href=\"https:\/\/www.google.com.ng\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=2&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwiGmsrzqPPXAhUF7hoKHY3DDtUQFggzMAE&amp;url=https%3A%2F%2Fbootstrap.pypa.io%2Fget-pip.py&amp;usg=AOvVaw0zKVO_zW0nkF7s0zdjWFNj\">here<\/a>.<\/li>\n<li><i>Django <\/i>zip package<\/li>\n<\/ol>\n<p>I would suggest you <span style=\"font-family: serif;\">download<\/span> this four items and put them in a folder. In this lesson, the Python 2.7.x<br \/><b><br \/><\/b><b>Install Python<\/b><br \/>Follow the procedure below carefully to install Python on your system<\/p>\n<ul>\n<li>Run the Python msi installer. Make sure it installs in your drive C.&nbsp;<\/li>\n<li>Check that a Python folder have been created on your drive C (if you can&#8217;t do this let me know in the comment box below)<\/li>\n<\/ul>\n<p><b>Verify Environment variable<\/b><br \/>Check that the path to the executable has been added to the environment variable. I think it should be added when Python is installed. <\/p>\n<p><b>Test the Installation<\/b><\/p>\n<ul>\n<li>Open the command prompt<\/li>\n<li>Type python -v<\/li>\n<\/ul>\n<p>If is displays the version of Python installed, then the installation was successful.<\/p>\n<p><b>Install Setuptools<\/b><\/p>\n<ul>\n<li>Copy the <i>ez_setup.py<\/i> script to your drive C<\/li>\n<li>Open the command prompt<\/li>\n<li>Change the directory to the&nbsp; folder containing the <i>ez_setup.py<\/i>. If you placed&nbsp; it in drive C, then you need to type, <i>C:<\/i> and press enter.<\/li>\n<li>Run the Script. Just type <i>python ez_setup.py<\/i><\/li>\n<\/ul>\n<p>If there is any prompt during the installation you can respond to it.<\/p>\n<p><b>Install pip (your computer should have internet connection to do this)<\/b><\/p>\n<ul>\n<li>Copy the <i>get-pip.py<\/i> script to your drive C<\/li>\n<li>Open the command prompt<\/li>\n<li>Change the directory to the&nbsp; folder containing the <i>get-pip.py<\/i>. If you placed&nbsp; it in drive C, then you need to type, <i>C:<\/i> and press enter.<\/li>\n<li>Run the Script. Just type <i>python get-pip.py<\/i><\/li>\n<\/ul>\n<p>If there is any prompt during the installation you can respond to it.<\/p>\n<p><b>Install Django<\/b><\/p>\n<ul>\n<li>Unzip the Django zip package<\/li>\n<li>Place the Django folder in your drive c<\/li>\n<li>Open the command prompt<\/li>\n<li>Change the directory to the folder containing Django<\/li>\n<li>Run the command python <i>setup.py build<\/i><\/li>\n<li>Wait for some time for the installation to complete.<\/li>\n<\/ul>\n<p>If there is any prompt during the installation you can respond to it.<\/p>\n<p><b>Test your Installation&nbsp;<\/b><\/p>\n<ul>\n<li>Open the Python shell<\/li>\n<li>Type <i>python<\/i><\/li>\n<\/ul>\n<p>If it displays the version of python installed, then the python installation was successful<\/p>\n<ul>\n<li>Type import django and press enter<\/li>\n<li>Type print <i>(django.get_version()) <\/i>and press enter<\/li>\n<\/ul>\n<p>If it displays the version of Django installed, then know that the installation was successful. At this point, you are ready to start building websites or web applications in Python.<br \/>In the subsequent tutorials, we would learn how to setup a database in Python and how to create our first website in python<\/p>\n<p><b>Any Issues?<\/b><br \/>If you had any issues with the procedure, let me know in the comment box below. I normally answer to student&#8217;s challenges before I post the next lesson.<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, I will teach you an easy way to set up Python and Django on Window. With Python, you can write and run &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":1,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":1464,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions\/1464"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}