Flask support for MongoDB using MongoAlchemy.
If you want to get started, check the example sourcecode out.
For full documentation, see the online docs at: http://packages.python.org/Flask-MongoAlchemy/.
- Source hosted at Github
- Report issues on Github Issues
If you are using a virtualenv, bootstrap your development environment by running:
$ make bootstrap
With all dependencies installed (after bootstrap development env), just run:
$ make test
#cobrateam on chanel irc.freenode.net
- MongoAlchemy 0.9 as dependency
- [bugfix] safe session operations on connect, save and remove
- Documentation improvements
- Support for safe or unsafe sessions and operations
- Fixed dependencies on
setup.py
- Compability with Flask 0.7
- [bugfix] method
get
onQuery
objects was never returning the object
- Introduced update queries support
Reverse compatibility broken on
Document
class. Theget()
method was moved toBaseQuery
class. Here the old code, on version0.1
:>>> Document.get(mongo_id)
And the new code, on version
0.2
:>>> Document.query.get(mongo_id)
Added
get_or_404
,first_or_404
andpaginate
methods onBaseQuery
class. Check the documentation to know how to use them :)