免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3295 | 回复: 0
打印 上一主题 下一主题

Django in CentOS [复制链接]

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-07 22:15 |只看该作者 |倒序浏览

               
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
instructions to add EPEL repository
, which state:
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
Install Django
To install django from EPEL, just run the following command:
sudo yum install
Django
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.
转自:http://codeghar.wordpress.com/2008/10/18/django-in-centos/
       
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/74256/showart_2143447.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP