Web Development with Django and MongoDB

Atul Jain (~atul2)




Now a days many people are using MEAN (MongoDB, Express, Angular, Node ) for web development because MongoDB is Schema less Database . The idea is to develop Schema less application using Django with MongoDB as a database

Schema Less or Non-Relational Schema Design

If you come from a relational background a non-relational database may seem counter-intuitive or completely odd since most non-relational databases are document and multi-key oriented and provide a different method of querying and excluding data.

Perhaps a good way to get used to non-relational style data modeling is to ask yourself “What would I never do in SQL”.

Because most relational databases lack proper list data structures you may typically model the Posts ⇔ Tags ⇔ Comments relationship using three models/tables, one table per entity type.

Organizing your data using multiple relationships is the exact opposite of what we will do for our non-relational data model: Have one single collection (table) for everything and store tags and comments in simple lists.

Why we use MOngoDB

No joins change the way you browse data (note: foreign keys is not the problem)


change what your views do; to do less


inheritance of structure (awesome!)

Hashed IDs e.g. 4bebe6e26b2ded78ec00000a (note: foreign keys is not the problem)

MongoDB is schemaless and easy to use so for user no need to use SQL query


Python programming ,Basics of django framework, Django Rest Framework

Content URLs:

Sample App



Speaker Info:

Atul Jain:

Developer who is a proactive, intuitive and intent to deliver product of the highest quality.

• Developer skill on Python, Open Source ERP • Good Experience in No-Sql databases like MongoDB. • Expert in python technology with framework like Django. Also worked with Nodejs • Good Experience in designing database for both relational and non-relational databases.

Speaker Links:



Section: Web Development
Type: Workshops
Target Audience: Intermediate
Last Updated:

The comment is marked as spam.


I wonder why you recommend using MongoEngine in your tutorial. I am wondering if you are aware of djongo.

It translates a SQL query string into a mongoDB query document. I can use the original django ORM without having to install a new ODM to get Django to work!

I am able to use all contrib modules like admin, using this connector. There is no additional effort of learning a new ODM either with this connector. I feel it is a better alternative to MongoEngine.

siddarth sen (~siddarth)

Login to add a new comment.