2011年11月14日

python, django, mongodb

from http://www.chrisumbel.com/article/django_python_mongodb_engine_mongo



MongoDB - I guess this is somewhat self explanatory, but you'll need MongoDB itself.
django-norel - is a special version of django designed for use with non-relational database engines in general.
django tooblox - a general purpose utility library upon which django-mongodb-engine depends
django-mongodb-engine - the MongoDB driver for django.

安裝mongodb
1.http://www.mongodb.org/downloads
2.http://www.mongodb.org/display/docs/quickstart

brew update
brew install mongodb

建立/data/db或C:\data\db
執行mongodb

/usr/local/Cellar/mongodb/2.0.1-x86_64/bin/mongo/mongod #db server
/usr/local/Cellar/mongodb/2.0.1-x86_64/bin/mongo/mongo #db interactive console


easy_install pymongo

download django-norel and install

cd django-norel
sudo python setup.py install
easy_install djangotoolbox
easy_install django-mongodb-engine

沒有留言:

張貼留言