DEV Community

Will Vincent
Will Vincent

Posted on • Originally published at

Is Django a Full Stack Framework?

The title of this post, "Is Django a Full Stack Framework?" is a question I receive often from new web developers. It's a very valid question so I wanted to address it here rather than keep repeating myself in individual emails.

Websites can be broken up into two major components: the "back-end" and the "front-end". The back-end is where the underlying database and any related logic lives, while the front-end is the HTML, CSS, and JavaScript that controls how this data looks on a webpage.

For example in a blog website, the back-end would the database containing individual blog posts and perhaps user comments too. The front-end would be the HTML, CSS, and perhaps JavaScript that displays the content.

Django was first released back in 2005 when front-ends were relatively straightforward. There were no dedicated JavaScript front-end frameworks like React, Angular, Vue, Ember, and the rest.

As a result Django comes with an intentionally basic Templating Language that can perform basic logic such as loops and filters. And to its credit, Django has resisted the temptation to add complexity here; the Django Templating Language still remains very bare-boned in functionality.

Most Django developers therefore fall into the back-end camp of the full-stack spectrum. They control the database and logic of a site and often, in companies, rely on a separate front-end developer to customize the presentation in a Django template.

These days an equally common set-up is to use Django Rest Framework to transform a Django website into an internal API that can then be consumed by a dedicated JavaScript front-end framework.

The end result for a viewer is still one website, but under-the-hood a Django back-end is sending HTTP requests and responses to a separate JavaScript front-end. With this approach a large site like Instagram, which uses Django, can support multiple front-ends (web, iOS, Android) from a single back-end. This is also known as "API first" development and is increasingly popular.

In practice almost no developer is truly "full-stack" these days; there's simply too much to know with Python, JavaScript, and related frameworks. Can developers use both well? Yes. But they will always be somewhere on the spectrum such as 70/30 back-end vs front-end or the inverse.

So is Django a full-stack framework? Yes I would argue. You can build a powerful website with just traditional Django but generally speaking if someone says "full-stack" they are talking about an internal API that interacts with a separate, often complex, front-end powered by a JavaScript framework.

Top comments (6)

anzhari profile image
Anzhari Purnomo

For me, it's 80% backend and 20% frontend. Context switching between the two is mentally really costly I could say.

gauthamp10 profile image
Gautham Prakash

Nice quick and precise read!

jjokah profile image
John Johnson Okah

Why are Full Stack developers more of Backend than Frontend? Just curious..

andrewbaisden profile image
Andrew Baisden

I would like to believe that I have a 50/50 split. Although recently I have been working with Python, Kotlin and SQL which are predominately backend programming languages.

vinceramces profile image
Vince Ramces Oliveros

Because Functionality > Design. Full-stack developer is just a myth.

elmuerte profile image
Michiel Hendriks

Full-stack developer is not a myth. It is a term you can use as an excuse not to invest in your development team. I think it's mostly a stupid term which for some people want to seek out.
I can do pretty much everything associated with software development. Including test automation, ops, requirement engineering, sales, etc. But it is the server side code where I truly shine. I'm not exactly "T-shaped" either, it's more like a bell curve. A long time ago most developers were what you'd call "full stack" these days. We were developers with more experience and desires in certain parts of the whole stack. But now we're chasing unicorn titles like "full-stack". It's just nonsense.