Tagged: django

How to update django 0

How to update django

So i was recently faced with the dilemma of having to update django 1.6.1 to 1.6.2, after a bit of searching I came across a very.. very simple solution

pip install -U Django

Of course this is assuming you installed django… if not you most likely need to uninstall it by deleting the path where it lives.. eg

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django
<module 'django' from '/usr/local/lib/python2.7/dist-packages/django/__init__.pyc'>
>>>

then

sudo rm -rf /usr/local/lib/python2.7/dist-packages/django/
Installing Django 1.5.1 with python 2.7.4 on Bluehost 3

Installing Django 1.5.1 with python 2.7.4 on Bluehost

First SSH Into your account (using putty, or terminal if you are on linux) where we will start by moving to our home directory (~) and creating a directory for the latest python.

cd ~
mkdir python27
wget http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz
tar xzvf Python-2.7.4.tgz
cd Python-2.7.4
./configure -prefix=/homeX/your_username/python27 --enable-unicode=ucs4
make
make install

We then add this python directory to our PATH environment variable and load it (more…)