<h3> Django</h3>

<p>Django is a free, open-source program that streamlines Python programming to help developers create “clean, pragmatic design”</p>

<h2>Step One—Install Python and Pip</h2>

<p>The virtual private server needs to be equipped with Python before Django can be installed. The recommended installation method is to create an isolated Python environment, called a virtualenv, where any changes made to the overall virtual server will not affect the Python projects. An additional benefit of using virtualenv is that it does not require root access to install or manage. Django itself can then be installed within the virtualenv with the help of Pip, a tool that makes installation, upgrades, and removals of Python Packages extremely easy.</p>

<p>You can install Pip on Ubuntu through apt-get:</p>

<pre>sudo apt-get install python-pip</pre>

<p>Go ahead and install Python:</p>

<pre>curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py</pre>

<p>Once that process has completed, we need to create the new virtualenv.</p>

<pre>python virtualenv.py example_env</pre>

<p>The next step is to activate the virtualenv so that all further changes and installations will be done only within example_env</p>

<pre>. example_env/bin/activate</pre>

<h2>Step Two—Install Django</h2>

<p>In the previous step, we setup the environment to install Django. Now using the easy pip installer, we can get Django on our droplet.</p>

<pre>pip install Django</pre>

<p>For future reference, you can use these commands to make changes to your version of Django or any other Python packages:</p>

<pre>pip install –upgrade Django</pre>

<pre>pip uninstall Django</pre>

<p>You now have Django installed on your VPS!</p>

<div class=“author”>By Etel Sverdlov</div>


Creative Commons License