In this presentation i have covered the basics to integrate MongoDB in a Django Application. I have covered basics of Django, Mongo DB, Mongo Engine and an easy way to integrate it with Django
2. What is Django
➢ A high level web framework for rapid development
➢ Free and Open Source
➢ It's written in and for Python
➢ Very useful default admin panel
➢ Form Handling
➢ Templates – It has it's own template engine
➢ Object Relational Mapping (ORM)
➢ Model-View-Template
7. MongoDB
➢ Scalable High-performance Open Source, NoSQL
database
➢ Query without joins
➢ Stores data in document model
➢ Nested Queries
➢ Map/Reduce for Aggregation
11. Comparison with RDBMS
RDBMS(MySql, Postgres) MongoDB
Tables Collections
Records/Rows Documents/Objects
Queries Return Record Queries Return Cursor
12. Django with Mongo
● At the core of Django is it's ORM
Mongo Engine
● An ORM written in Python for MongoDB
● Say bye to Migrations.
● It's similar to Django ORM
● pip install mongoengine
16. MongoEngine is good
● Constantly maintained
● Works like Django ORM
● A replaceable component in Django
17. Any Alternative? - Yes
Django-nonrel
● Not maintained anymore
● Available for old django versions(maybe 1.4 or
1.5)
18. When should you use MongoDB
● You are starting a project with design freedom
● Your application has a lot of Geo-location data
● You have a high-volume traffic
● You want auto-sharding