Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Django for the frontend or backend? [closed]

I often see people claiming their backend is implemented in Django, but isn't Django supposed to be for the frontend? I'd assume the backend refers to the business logic where the frontend refers to the presentation. Am I missing something?

like image 582
Kar Avatar asked Jan 31 '12 14:01

Kar


People also ask

Is Django for front end or back-end?

Modern Web Development Shouldn't Mean Ignoring the Classics But equally, in Django and React we have two frameworks that should be complementary to each other — one is a backend framework, the other is for the frontend.

Is Django full-stack or backend?

Django is the most popular Python framework for web development. It's a full-stack framework and includes all the necessary features by default instead of offering them as separate libraries.

Is Django enough for backend?

Is Django enough for back-end? A: Yes and yes. Like any tool, it's not appropriate for every job, but Django can handle a lot of scenarios well enough.

Is Python Django full-stack?

Django is a free, open-source, full-stack web application framework written in Python.


1 Answers

Neither.

Django is a framework, not a language. Python is the language in which Django is written.

Django is a collection of Python libs allowing you to quickly and efficiently create a quality Web application, and is suitable for both frontend and backend.

However, Django is pretty famous for its "Django admin", an auto generated backend that allows you to manage your website in a blink for a lot of simple use cases without having to code much.

More precisely, for the front end, Django helps you with data selection, formatting, and display. It features URL management, a templating language, authentication mechanisms, cache hooks, and various navigation tools such as paginators.

For the backend, Django comes with an ORM that lets you manipulate your data source with ease, forms (an HTML independent implementation) to process user input and validate data and signals, and an implementation of the observer pattern. Plus a tons of use-case specific nifty little tools.

For the rest of the backend work Django doesn't help with, you just use regular Python. Business logic is a pretty broad term.

You probably want to know as well that Django comes with the concept of apps, a self contained pluggable Django library that solves a problem. The Django community is huge, and so there are numerous apps that do specific business logic that vanilla Django doesn't.

like image 140
e-satis Avatar answered Sep 20 '22 17:09

e-satis