Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8364699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:29:04+00:00 2026-06-09T12:29:04+00:00

I am not that experienced with django yet, but we are creating a project

  • 0

I am not that experienced with django yet, but we are creating a project soon and we were wondering which database to use for our backend (Mongodb or PostgreSQL).

I’ve read a lot of post saying the differences between each, but I still can’t take the decision of which to go for. Taking in consideration I never worked with Mongodb before.

So what shall I go for ??

Thanks a lot in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:29:05+00:00Added an answer on June 9, 2026 at 12:29 pm

    MongoDB is non-relational, and as such you cannot do things like joins, etc.
    For this reason, many of the django.contrib apps, and other 3rd-part apps are likely to not work with mongodb.

    But mongodb might be very useful if you need to store schemaless complex objects that won’t go straight into postgresql (of course you could json-serialize and put in a text field, but using mongodb instead is just way better, allows you doing searches, ..).

    So, the best suggestion is to use two databases:

    • PostgreSQL for the standard applications, such as django core, authentication, …
    • MongoDB only for your application, when you have to store non-relational, complex objects

    You also might want to use the raw_* methods that skip lots of (mostly unnecessary) validation by the django orm.

    Just remember that databases, especially sql vs no-sql, are not drop-in replacements of each other, but instead they have their own features, pros and cons, so you have to find out which one suits best your needs in each case, not just pick one and use it for everything.

    UPDATE

    I forgot to say: remember that you have to use the django-nonrel fork in order to make django support non-relational databases. It is currently a fork of django 1.3, but a 1.4-based version is work-in-progress.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help on regex or preg_match because I am not that experienced yet
I'm working on an intranet django project (not using GAE) for a company that
I'm developing an web application that uses a non-relational database as a backend (django-nonrel
Some of our FogBugz users experience that the Screenshot tool does not start-up automatically
Not that it's particularly useful, but I'm curious as to why the following works,
Not that it matters strictly, and maybe I just don't yet fully understand how
Please not that I fully understand this is a dumb ass idea, but its
We have a project that will need to work in IE6,7,8. I'm not that
I am not new to Django (1y work experience) but I have got a
I'm developing a CMS (with Django, but that doesn't matter) and have chosen GIT.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.