django_mongodb_engine

A MongoDB backend standing outside Django
Download

django_mongodb_engine Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Flavio Percoco Premoli
  • Publisher web site:
  • http://flaper87.org

django_mongodb_engine Tags


django_mongodb_engine Description

A MongoDB backend standing outside Django django_mongodb_engine is a database backend that adds MongoDB support to the Django framework.About DjangoDjango is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.About MongoDBMongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality).Infographics * Django Nonrel branch * Manager * Compiler (MongoDB Engine one) * MongoDBdjango-mongodb-engine uses the new django1.2 multi-database support and sets to the model the database using the "django_mongodb_engine.mongodb".ExamplesFor detailed examples see: (http://github.com/FlaPer87/django-mongodb-engine/tree/master/tests/testproj/)class Person(models.Model): name = models.CharField(max_length=20) surname = models.CharField(max_length=20) age = models.IntegerField(null=True, blank=True) def __unicode__(self): return u"Person: %s %s" % (self.name, self.surname)>> p, created = Person.objects.get_or_create(name="John", defaults={'surname' : 'Doe'})>> print createdTrue>> p.age = 22>> p.save()=== Querying ===>> p = Person.objects.get(name__istartswith="JOH", age=22)>> p.pku'4bd212d9ccdec2510f000000' Requirements: · Python · Django · Djangotoolbox · Django non rel


django_mongodb_engine Related Software