Introduction to Django as a Framework

Welcome back people, let's make this brief and precise. Okay. Some of us already know Django, some of us don't, let's discuss what django is first.

Folks, meet Django, Django, meet folks

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

source

Blah like that, it's self explanatory, it basically says, it's a tool that helps you build web applications with very little stress without doing the same thing over and over again, and it's free, plus, if you think there's something wrong with the tool, you can tell the people who maintain it about the issue and how you suggest they fix it, in one word, Open Source. And django was built using python.

Now you know what Django is :) . Good job.

Django as a Framework

In my own words, a framework is a collection of libraries. Meaning, a framework contains sub sections of different functionalities or similar, in each section, the functionalities are very similar.

Wikipedia? Knock Yourself Out.

Moving on.

Django Design Pattern

Enough of the big grammar, what design pattern means in this case is, how does django work. Django works using a pattern known as MVT (Model-View-Template).

  • The Model manages the data and is represented by a database. A model is basically a database table.

  • The View receives HTTP requests and sends HTTP responses. A view interacts with a model and template to complete a response.

  • The Template is basically the front-end layer and the dynamic HTML component of a Django application.

It's totally fine if you don't fully understand some of that, you'll eventually understand.

And we're done, that's that on this, i'll see you on the next one.

Over and out, ciao.