What is Django and why it remains a great choice
Published on 2026-09-12 by frfrand
A framework that comes with everything solved: ORM, migrations, admin panel, and security by default. What you gain and what it costs to choose it, and in which cases something else is preferable.

Short answer: Django is a Python web framework with "batteries included": ORM, migrations, authentication, admin panel, and security protections enabled by default. It's a great choice for business applications with relational data and small teams; it fits less well with minimal APIs or real-time-focused systems. In production it is served with nginx in front and Gunicorn or uWSGI running the code.
Django is a Python web framework that was born in the newsroom of a Kansas newspaper, the Lawrence Journal-World, to publish news quickly, and was released as open source in 2005. That heritage explains much of its character: it is built so that a small team can launch something complete without debating every piece.
The philosophy: batteries included
There are two schools of frameworks. One gives you the bare minimum and you choose each component. The other gives you everything decided and you write your application on top.
Django is clearly of the second kind. It brings the ORM, migrations, authentication, the permissions system, the admin panel, templates, form validation, and a host of security protections enabled by default.
That means less freedom in decisions that, honestly, most projects don't need to make. And it means that the project you started today will look like someone else's, which is a huge advantage when someone new joins the team.
What really saves time
The ORM. You describe your data as Python classes and Django talks to the database for you. You don't write SQL for common tasks, although you can when necessary.
Migrations. You change a model, run a command, and Django generates the file that updates the database. That file is versioned along with the code, so the production database and your colleague's end up the same. It's one of the best-solved things in the ecosystem.
The admin panel. This is the one that surprises most those coming from elsewhere. Based on your models, Django generates a functional back office: list, search, filter, create, edit, with user permissions.
It's not for end users, it's for the team to manage data without building screens. Many projects survive months with that panel as their only internal interface.
Security by default. CSRF protection, automatic escaping in templates to prevent HTML injection, parameterized queries that prevent SQL injection, properly done password hashing. Everything turned on from the start. It's hard to exaggerate how much this is worth in a project that doesn't have someone dedicated to security.
What it costs
It's opinionated. If you want to build things your own way, you'll struggle. The right way to work with Django is to accept its conventions.
The ORM hides the SQL. It's convenient until a query becomes slow. The classic problem is N+1: you iterate over a list and for each element another query is triggered. It's fixed with select_related and prefetch_related, but first you have to realize it, and for that you need to know how to look at the SQL it generates.
It's synchronous by tradition. Django has had asynchronous support for several versions, but much of the ecosystem is still designed around synchronous. For thousands of simultaneous open connections (websockets, for example) there are more natural tools.
When to choose it
It fits very well when there is a data model with real relationships, when an admin panel is needed, when the team is small, and when the project is going to last. It's the case of most business applications.
It fits worse if what you're doing is a minimal API of two endpoints, if the heart of the system is real-time, or if you're not going to use a relational database.
How to put it into production
Django doesn't serve itself. The standard scheme is three pieces: nginx up front as a reverse proxy, an application server (Gunicorn or uWSGI) running your code, and Django inside.
And a warning worth the whole article: DEBUG set to False in production. With DEBUG enabled, any error shows the visitor the full traceback, with paths, configuration, and code snippets. It's the most common information leak in the entire ecosystem.
In ArduMaker, a Django project is deployed from GitHub like any other repository. The assistant recognizes it by its manage.py and proposes installing with pip install -r requirements.txt and starting with Gunicorn (the WSGI module it proposes, config.wsgi, adjusts to your project name). The process remains as a systemd service, the domain is published with HTTPS, and migration goes in its own phase that only runs after a person confirms it.
Django on a VPS: minimum checklist before launch
To deploy Django on ArduMaker you need to prepare dependencies, environment variables, migrations, an application process such as Gunicorn, and an HTTPS proxy. Before publishing, verify DEBUG=False, ALLOWED_HOSTS, the static files policy, and PostgreSQL credentials. The server block generated by the deploy serves /static/ from the project's staticfiles folder and /media/ from media: with STATIC_ROOT pointing to staticfiles and collectstatic in the build, static files are served directly from nginx.
If you have long-running tasks, separate them from the HTTP process using a worker. Log your logs and test how to revert a failed deployment. Publishing code is just one step in taking Django to production.
Related: What is PostgreSQL · What is a worker.
Frequently Asked Questions
Is Django suitable for building APIs? Yes. With Django REST Framework (or Django Ninja) you can build complete APIs leveraging the ORM, authentication, and permissions. For a minimal API with two endpoints, a smaller framework may be sufficient.
What is the N+1 problem? Iterating over a list and firing an extra query for each element. In Django it is fixed with select_related and prefetch_related, after checking the SQL generated by the ORM.
Why must DEBUG be set to False in production? Because with DEBUG enabled, any error shows the visitor the full traceback, with paths, configuration, and code snippets.