Web Development with Django and MongoDB
Atul Jain (~atul2) |
16
Description:
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)
Transactions
change what your views do; to do less
Polymorphism
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
Prerequisites:
Python programming ,Basics of django framework, Django Rest Framework
Content URLs:
Sample App
https://github.com/atuljain/django-mongodb-sample-login
http://django-mongodb-engine.readthedocs.org/
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:
https://github.com/atuljain
https://in.linkedin.com/in/atul-jain-00b7202b