Examples


Django Web Framework


Django is a free and open-source, Python-based web framework that runs on a web server. Django is a high-level Python Web framework that allows speedy improvement of stable and maintainable web sites and internet applications. Django offers integrated capabilities for duties inclusive of URL routing, database schema, migrations, admin interface, shape handling, authentication, which appreciably hastens the improvement process.

Model-View-Template (MVT) Architecture

  • Model: The database schema is defined by the Model and it contains methods for interacting with the data. Models are usually defined in the models.py file of an app.
  • View : HTTP requests are handled and HTTP responses are returned by the View. Views can be defined as functions and classes are typically stored in the views.py file of an app.
  • Template : The structure of the HTML pages sent back to the user is defined by the Template. Templates are usually stored in the templates directory of an app.
Django Model-View-Template (MVT) Architecture

Why Use Django Framework

  • High scalability
  • Security (SQL injection, Cross-site scripting (XSS))
  • Huge and active community
  • ORM (Object-Relational Mapping)
  • Admin Interface
  • Testing Framework
  • The documentation is excellent

Prerequisites to Learn Django

  • Basic Understanding of Python
  • HTML, CSS, and JavaScript
  • Basic Knowledge of Web Development
  • Understanding of Databases and SQL

Next