fatiherikli/tastypie-mongodb-resource — pull request #2 by ferrix (2013-03-07 20:17:14+00:00)
Title: Authenticate to the database

If both `MONGODB_USERNAME` and `MONGODB_PASSWORD` are set, authenticate
the connection. Also use Database as described in the documentation.

ref: http://api.mongodb.org/python/current/api/pymongo/database.html