Installation¶
Using pip simply by doing:
pip install django-tastypie-mongoengine
or by installing from source with:
python setup.py install
In your settings.py add tastypie and tastypie_mongoengine to INSTALLED_APPS:
INSTALLED_APPS += (
'tastypie',
'tastypie_mongoengine',
)
You must also connect MongoEngine to the database:
MONGO_DATABASE_NAME = 'database'
import mongoengine
mongoengine.connect(MONGO_DATABASE_NAME)