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-01-19 11:50:59 发表到 Reading 中,目前已经被浏览 65 次,评论 2 次;

作者添加了以下标签: mysqlubuntu