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

  • Home
  • SEARCH
  • 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 1073905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:03:02+00:00 2026-05-16T21:03:02+00:00

When using django, I believe you can swap out the built-in orm for sqlalchemy

  • 0

When using django, I believe you can swap out the built-in orm for sqlalchemy (not sure how though?).

Are they both basically the same thing or there is a clear winner between the 2?

  • 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-05-16T21:03:03+00:00Added an answer on May 16, 2026 at 9:03 pm

    When using django, I believe you can swap out the built-in orm for sqlalchemy (not sure how though?).

    You can use SQLAlchemy in your Django applications. That doesn’t mean you can “swap” out the ORM though. Some of Django’s built-in batteries would cease to work if you completely replace Django’s ORM with SQLAlchemy. For instance the Admin app wouldn’t work.

    I have read about people using both. Django’s ORM to get the batteries to work and SQLAlchemy to tackle complex SQL relationships and queries.

    Are they both basically the same thing or there is a clear winner between the 2?

    They are not the same thing. SQLAlchemy is more versatile than Django’s ORM. For instance while Django’s ORM tightly couples the business logic layer and the persistence layer into models, SQLAlchemy will let you keep them separate.

    On the other hand SQLAlchemy has a steeper learning curve and would be an overkill for many projects. The existing migration tools for SQLAlchemy may not easily integrate with Django.

    All said, I wouldn’t presume to declare either a “winner”. They are broadly similar tools but with their own strengths, weaknesses and best-fit situations.

    While you are on the subject it wouldn’t hurt to read this (dated but relevant) blog post about the short comings of the Django ORM and how it compares with SQLAlchemy.

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

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think that Linq is really overhead here but if… May 16, 2026 at 11:24 pm
  • Editorial Team
    Editorial Team added an answer Once you've defined a non significant key you can refactor… May 16, 2026 at 11:24 pm
  • Editorial Team
    Editorial Team added an answer There appear to be some jQuery plugins that do this… May 16, 2026 at 11:24 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm using the Django ORM in a non-Django application and would like to turn
I'm developing an IFrame application in Facebook (using pyfacebook and Django) and could not
This doesn't seem to work in django 1.1 (I believe this will require a
I am just starting out with Django and would like to know the best
Using Django 1.1: The Django admin docs describe using arbitrary methods or attributes on
Using django templates I would like to split a block of text on the
Using django-tinymce I have successfully embedded TinyMCE in the Admin before. Embedding it in
I am using django generic views, how do I get access to the request
I have been using Django for web-development, and have become quite fond of that
I am using Django's pre_save signal to implement auto_now_add. There is a lot of

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.