install:

  1. sudo apt-get install mysql-server 

support php:

  1. sudo apt-get install php5-mysql 

done!

remove?

  1. apt-get autoremove --purge mysql-server-5.0 

also

  1. sudo apt-get autoremove mysql-server 
  2. sudo apt-get autoremove mysql-client 

also

  1. apt-get remove mysql-common 

install Django

download from http://www.djangoproject.com/download/ and then extrac

  1. sudo python setup.py install 

cd into a directory where you’d like to store your code, then run the command:

  1. django-admin.py startproject mysite 

This will create a mysite directory in your current directory.change into mysite directory and run the command:

  1. python manage.py runserver 

 now open "http://127.0.0.1:8000" with your firefox.You'll see a "Welcome to Django" page, It worked!

you can change the port with the following command:

  1. python manage.py runserver 8080 

install mysqldb(this command "sudo sh MySQL_python-1.2.3c1-py2.6-linux-i686.egg" does not work?):

  1. sudo apt-get install python-mysqldb 

use:

  1. django-admin.py startproject blog 

but NOT:

  1. python django-admin.py startproject blog 

install ulipad:

  1. sudo apt-get install python-wxgtk2.8 
此文章由 feng 于 2010-03-11 11:04:38 编辑

本日志由 feng 于 2010-01-19 11:50:59 发表,目前已经被浏览 64 次,评论 2 次;

作者添加了以下标签: mysqlubuntu

引用通告:http://www.imfeng.net/Article/19/Trackback.ashx

评论订阅:http://www.imfeng.net/Article/19/Feeds.ashx

相关文章

评论列表

  1. 2010-01-20 23:08:19 | # | 回复
    飘过
  2. Gravatar
    feng
    2010-01-20 23:18:46 | # | 回复
    @xdarui ubuntu is powerfull!
(必填)
(必填,不会被公开)