<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Greg Ruminski</title>
    <description>The latest articles on Forem by Greg Ruminski (@gregruminski).</description>
    <link>https://forem.com/gregruminski</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F191304%2Fbd7728e8-be99-4bc4-a6ac-073fb903b811.png</url>
      <title>Forem: Greg Ruminski</title>
      <link>https://forem.com/gregruminski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/gregruminski"/>
    <language>en</language>
    <item>
      <title>How to install Django on Windows machine</title>
      <dc:creator>Greg Ruminski</dc:creator>
      <pubDate>Mon, 18 Nov 2019 09:18:29 +0000</pubDate>
      <link>https://forem.com/gregruminski/how-to-install-django-on-windows-machine-25oi</link>
      <guid>https://forem.com/gregruminski/how-to-install-django-on-windows-machine-25oi</guid>
      <description>&lt;p&gt;The easiest way to install Django on a Windows machine (fully Windows installation, not using WSL) is to use the &lt;em&gt;scoop&lt;/em&gt; package manager (&lt;a href="https://github.com/lukesampson/scoop"&gt;https://github.com/lukesampson/scoop&lt;/a&gt;). &lt;br&gt;
Scoop is VERY useful when developing on Windows, it has a huge library of packages, I highly recommend trying it out.&lt;/p&gt;


&lt;h2&gt;
  
  
  Install Python
&lt;/h2&gt;


&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;scoop install python
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;check if python installed correctly&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python --version
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Pip
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;pip&lt;/em&gt; is a package manager for Python (&lt;a href="https://pip.pypa.io/en/stable/"&gt;https://pip.pypa.io/en/stable/&lt;/a&gt;)&lt;br&gt;
(&lt;em&gt;note: scoop python installation installs pip by default&lt;/em&gt;)&lt;/p&gt;
&lt;h2&gt;
  
  
  Install virtualenv and virtualenvwrapper
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;virtualenv&lt;/em&gt; and &lt;em&gt;virtualenvwrapper&lt;/em&gt; (&lt;a href="https://virtualenv.pypa.io/en/stable/"&gt;https://virtualenv.pypa.io/en/stable/&lt;/a&gt;) provide a dedicated environment for each Python (and therefore Django) project you create. &lt;/p&gt;

&lt;p&gt;It is &lt;em&gt;not&lt;/em&gt; mandatory, but is very useful and will save you time in the future.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install virtualenvwrapper-win
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Create a virtual environment for your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkvirtualenv myproject
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The virtual environment will be activated automatically and you’ll see “(myproject)” next to the command prompt to designate that. If you start a new command prompt, you’ll need to activate the environment again using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;workon myproject
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Install Django
&lt;/h2&gt;

&lt;p&gt;Django can be installed easily using pip within your virtual environment.&lt;/p&gt;

&lt;p&gt;In the command prompt, ensure your virtual environment is active (&lt;code&gt;workon myproject&lt;/code&gt;), and execute the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install django
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;This will download and install the latest Django release.&lt;/p&gt;

&lt;p&gt;Verify your Django installation by executing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;django-admin --version
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>django</category>
      <category>windows</category>
      <category>python</category>
      <category>scoop</category>
    </item>
  </channel>
</rss>
