写了一个Django安装指南。

软件和网站开发以及相关技术探讨
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

写了一个Django安装指南。

#1

帖子 oneleaf » 2006-09-06 21:15

http://wiki.ubuntu.org.cn/Django

# 安装python-setuptools 0.6c1,系统自带的是0.6b1 ,不适合最新的Django框架

wget -c http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py

# 下载Django并安装

wget -c http://media.djangoproject.com/releases ... .95.tar.gz
tar xzvf Django-0.95.tar.gz
cd Django-0.95
sudo python setup.py install
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-09-07 11:20

安装 mysql python 支持。

sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
sudo easy_install MySQL-python
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#3

帖子 oneleaf » 2006-09-07 11:31

安装 sqlite3 python 支持
sudo apt-get install python-pysqlite2
vane
帖子: 6
注册时间: 2006-09-11 14:48

#4

帖子 vane » 2006-09-11 14:50

...感谢。
顺利安装上django了。
头像
SuperWar3Fan
帖子: 1263
注册时间: 2006-05-20 6:25
来自: 山东淄博
联系:

#5

帖子 SuperWar3Fan » 2006-10-10 9:48

django类似与ROR?
windtake
帖子: 4
注册时间: 2006-11-13 16:11

#6

帖子 windtake » 2006-12-01 22:56

为什么我按照上面的安装方法会报这样的错 :
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
In file included from /usr/include/mysql/mysql.h:33,
from _mysql.c:40:
/usr/include/sys/types.h:153: error: duplicate ‘unsigned’

而且我自己下载 mysql-python-1.2.0 同样也是报上面的错误,我自己也一直找不到Python.h。是不是要该site.cfg里面的什么东西?请指点,谢谢!
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2006-12-03 15:20

Python.h

structmember.h

http://packages.ubuntu.com 去查这两个文件属于哪个dev包,使用apt-get 安装了,然后再继续。
头像
forrid
帖子: 659
注册时间: 2007-04-23 17:40

#8

帖子 forrid » 2007-07-01 19:42

感谢楼上,马山过去找!

吾生也有涯,而知也无涯,以有涯随无涯,SB啊~~~~~~~~~~
reasonpun
帖子: 1
注册时间: 2007-12-24 14:02

#9

帖子 reasonpun » 2008-05-10 19:26

Python.h stuctuemember.h ==>sudo apt-get install python2.5-dev
头像
RichieKeh
帖子: 9
注册时间: 2007-12-04 20:38
联系:

#10

帖子 RichieKeh » 2008-06-08 20:04

有Django的教程马?
回复