DEV Community

Cover image for Django MongoDB Backend Quickstart

Django MongoDB Backend Quickstart

Anaiya on February 03, 2025

This article is written by Anaiya Raisinghani (Developer Advocate @ MongoDB) and Nora Reidy (Technical Writer @ MongoDB) Interested in diving int...
Collapse
 
jod35 profile image
Ssali Jonathan

Amazing

Collapse
 
anaiyaraisin profile image
Anaiya

Thank you @jod35! I'm happy you enjoyed this tutorial.

Collapse
 
jwoehr profile image
Jack Woehr

Worthwhile 5 stars.
Worked all the way through this Quickstart.
Good introduction to Django for a Flask/Bottle/Uvicorn/Gunicorn user like myself.
MongoDB ... "just works" !!!

Collapse
 
anaiyaraisin profile image
Anaiya

Thank you for this kind comment @jwoehr! I'm happy to hear you enjoyed working through this quickstart and it was beneficial.

Collapse
 
rehanahmedch profile image
rehanahmedch • Edited

👍 Crisp & to the point

Collapse
 
anaiyaraisin profile image
Anaiya

Thank you for your feedback @rehanahmedch! :)

Collapse
 
chrisachinga profile image
c a

does one need to start from the template

Collapse
 
anaiyaraisin profile image
Anaiya

Thanks for your question @chrisachinga!

We recommend doing so to ensure certain necessities are incorporated, such as MongoDB-specific migrations and having the settings.py file already modified for you so Django is using an ObjectId value.

Let me know if you have any other questions, I'd be happy to help.

Collapse
 
chrisachinga profile image
c a

Thanks for the response,

I was tried to add the mongodb to a django site on production and was running into some issues when migrating the models, i thought of trying to do some performance metrics on queries comparing mongodb and postgress.

maybe in the official release we will have such an option, that would be great. i would prefer to integrate mongo on some ongoing projects rather than starting from scratch with the template.

this is amazing to be honest @anaiyaraisin

Thread Thread
 
anaiyaraisin profile image
Anaiya

Thanks for your reply @chrisachinga,

So we don't recommend using our library in production until our GA.
For any issues please open a GitHub issue or Jira ticket!

We appreciate your feedback so much. :)

Thread Thread
 
anaiyaraisin profile image
Anaiya

Hi @chrisachinga, just a heads up, I have forwarded your feedback to my team and someone will be in touch to chat with you. :)

Thread Thread
 
chrisachinga profile image
c a

great, looking forward to the chat