Installing Django on CentOS 6

Django is available as an EPEL package.

First, activate EPEL via

$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

or for 32-bin CentOS,

$ sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

NOTE: That exact URL will change with time. I took it from the EPEL FAQ.

Next, install the Django package.

$ sudo rpm install Django

Ensure that Django is working.

$ python
Python 2.6.6. (r266:84292, Feb 22 2013, 00:00:18)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or license" for more informaiton. 
>>> import django
>>> print django.get_version()
1.4.5
>>> _
This entry was posted in SysAdmin and tagged , , , , . Bookmark the permalink.

Leave a Reply