Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233634
  • 博文数量: 37
  • 博客积分: 3074
  • 博客等级: 中校
  • 技术积分: 445
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-24 09:31
文章分类

全部博文(37)

文章存档

2010年(6)

2009年(17)

2008年(14)

分类: Python/Ruby

2010-01-07 22:15:12

This post has been written using CentOS 5.2, but these instructions may also work for other versions. Just let us know if they don’t.

Install EPEL

Extra Packages for Enterprise Linux (EPEL) is “a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux [...] and its compatible spinoffs such as CentOS or Scientific Linux.” You need this repository to install Django from a package. Another option is to download source and compile yourself. This guide, however, will be using packages. So just follow the , which state:

su -c 'rpm -Uvh '

Install Django

To install django from EPEL, just run the following command:

sudo yum install

Notice the uppercase ‘D’ in the name of the package. Django is installed in /usr/lib/python2.4/site-packages/django/ and it should already be included in the path.

Test Django

To make sure everything was installed properly, try to create a simple new project.

django-admin.py startproject /home/me/mynewproject

If a directory with the same name and some standard django sub-directories are created, then your installation was successful.

转自:

阅读(2792) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~