InstallationΒΆ

Inside a virtualenv, using pip simply by doing:

pip install django-datastream

Or install from source directly.

If installing from source, you can at this point try out demo, or proceed with integration with your Django project.

You should add django_datastream to INSTALLED_APPS in your settings.py.

Suggested settings are:

INSTALLED_APPS += (
    'tastypie',
    'django_datastream',
)

USE_TZ = True

MONGO_DATABASE_NAME = 'project_name'
MONGO_DATABASE_OPTIONS = {
    'tz_aware': USE_TZ,
}

DATASTREAM_BACKEND = 'datastream.backends.mongodb.Backend'
DATASTREAM_BACKEND_SETTINGS = {
    'database_name': MONGO_DATABASE_NAME,
    'tz_aware': USE_TZ,
}

# JSONP support as well
TASTYPIE_DEFAULT_FORMATS = ('json', 'jsonp', 'xml')