Skip to content

animenon/Learning-Django

Repository files navigation

Learning-Django

DeepSource DeepSource

Introducing Django

This is a short introduction to the Django framework. Django is a web development framework written in Python, and its aim is to be versatile. It's capable of building any application you might envision, but it's also performant and convenient. You'll build applications quickly, and they'll run quickly as well. Django is also a very complete framework. Out of the box, it contains everything you need to build any web application.

It has its own HTML template language, a beautiful ORM framework for storing your data in a database, sessions, authentication, internationalization, etc.

Now, what I want to focus on are the various components that make up a Django application. Mainly, the following three types of components: models, templates, and views. And these three types of components together make up the architecture that's central to Django, which is aptly called model template view, or MTV in short.

Features of Django

It is ridiculously fast. Django was designed to help developers take applications from concept to completion as quickly as possible.

It is reassuringly secure. Django takes security seriously and helps developers avoid many common security mistakes.

It is exceedingly scalable. Some of the busiest sites on the Web leverage Django’s ability to quickly and flexibly scale.

It is incredibly versatile. Companies, organizations and governments have used Django to build all sorts of things — from content management systems to social networks to scientific computing platforms.

Examples to Learn Python Django

  1. "Welcome to Django" example is like the "Hello World" example in Django.

  2. "Django Starter App" expands upon the "Welcome to Django" example, this time, creating an MVC app.

  3. "Introducing Django" gives an introduction to the Django language and briefly explains its features.

Structure of a Django Project:

└── new_project
    ├── new_project
    │   ├── __init__.py
    │   ├── settings.py
    │   ├── urls.py
    │   └── wsgi.py
    └── manage.py

Source : https://www.djangoproject.com