<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python windows 10 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/python-windows-10/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 12 Jan 2020 19:52:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Django on Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-django-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-django-on-windows-10/#comments</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 01:28:23 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python windows 10]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17623</guid>

					<description><![CDATA[<p>Hi, how are you? It&#8217;s a real pleasure to be with you again. In this opportunity, we are going to talk about a free and open-source web application framework written in Python. Indeed, I&#8217;m talking about Django. A web framework is a set of components that help to develop websites easier and faster. In other [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-django-on-windows-10/">How to install Django on Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, how are you? It&#8217;s a real pleasure to be with you again. In this opportunity, we are going to talk about a free and open-source web application framework written in Python. Indeed, I&#8217;m talking about Django. A web framework is a set of components that help to develop websites easier and faster. In other words, <a href="https://www.djangoproject.com/" target="_blank" rel="noreferrer noopener" aria-label="Django (opens in a new tab)">Django</a> is a web framework designed to make applications of any complexity in a very reasonable time. In addition, its fundamental goal is to facilitate the creation of complex websites. As you can see, it is a framework of undoubted utility. Consequently, let&#8217;s see how to install Django on Windows 10.</p>



<h2>Prerequisites</h2>



<p>Django&#8217;s installation is managed from PIP.  This is a package management system used to install and manage software packages written in Python. Consequently, it is indispensable to have Python installed in Windows 10. To know how to do it, please check <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://www.osradar.com/how-to-install-python-3-in-windows-10/" target="_blank">here</a>.</p>



<h2>Preparing for installation.</h2>



<p>In the first place, creates a folder in any location. I recommend the root directory. In this folder, the projects will be saved. Likewise, assign the name you want. In this case, I&#8217;ll use <em>django</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django.jpg" alt="Create a folder with the name django and place it in the root of the directory." class="wp-image-17624" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Create a folder with the name django and place it in the root of the directory.</figcaption></figure>



<h2>Create a virtual environment for the project.</h2>



<p>In order to develop the project, it is necessary to create a virtual environment. With this in mind, open a Command Prompt and use the CD command to go to the django folder.</p>



<pre class="wp-block-preformatted">cd..
cd..
cd django</pre>



<p>Once inside the folder, proceed to create the environment, typing the following command:</p>



<pre class="wp-block-preformatted">py -m venv osradar</pre>



<p>Please remember to replace <em>osradar</em> with the name you want to assign to the virtual environment.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django1.jpg" alt="Creating the virtual environment" class="wp-image-17626" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the virtual environment</figcaption></figure>



<p>Once the environment is created, all that remains is to activate it. With this in mind, please type the following command:</p>



<pre class="wp-block-preformatted">osradar\Scripts\activate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django2.jpg" alt="Activate the environment." class="wp-image-17627" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Activate the environment.</figcaption></figure>



<h2>Downloading at installing Django</h2>



<p>As we said at the beginning, in order to install Django, you need to use PIP. So, open a CMD from the project folder previously activated, and enter the following command:</p>



<pre class="wp-block-preformatted"> pip install Django==3.0.2</pre>



<p>Press enter and wait for the wizard to download and install the framework.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django3.jpg" alt="Downloading and installing Django." class="wp-image-17629" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Downloading and installing Django.</figcaption></figure>



<p>After installing Django, it&#8217;s time to verify the installation. To do so, type the following command:</p>



<pre class="wp-block-preformatted">pip freeze</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django5.jpg" alt="Testing Django's installation" class="wp-image-17631" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django5-300x137.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django5-768x351.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django5-696x318.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django5-919x420.jpg 919w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Testing Django&#8217;s installation</figcaption></figure>



<p>If everything is working correctly, the console should display the version of the installed items.</p>



<h2>Create a new project.</h2>



<p>Then create your first project in Django. With this in mind, open a Command Prompt from the virtual environment and execute this command:</p>



<pre class="wp-block-preformatted">django-admin startproject Liberator</pre>



<p>Please remember to replace the word <em>Liberator</em> with the name of your project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="558" height="52" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django7.jpg" alt="Create a new project." class="wp-image-17632" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django7.jpg 558w, https://www.osradar.com/wp-content/uploads/2020/01/django7-300x28.jpg 300w" sizes="(max-width: 558px) 100vw, 558px" /><figcaption>Create a new project.</figcaption></figure>



<h2>Running the server</h2>



<p>After the project is created, it&#8217;s time to run the server. With this in mind, open a CMD from the newly created project folder. Then execute this command:</p>



<pre class="wp-block-preformatted">python manage.py runserver</pre>



<p>Press enter, if everything is correct the server will start.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django8-1.jpg" alt="Django server running" class="wp-image-17636" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django8-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> Django server running </figcaption></figure>



<p>After starting the server, please copy the IP address to your web browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django6.jpg" alt="Django's server running successfully." class="wp-image-17637" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django6.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django6-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django6-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django6-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django6-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django6-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Django&#8217;s server running successfully.</figcaption></figure>



<p>We&#8217;ve finally seen how to install Django on Windows 10. From now on you can use this powerful framework written in Python. That&#8217;s all for now, please share this post on your social networks. See you next time.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-django-on-windows-10/">How to install Django on Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-django-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
