Sobes.tech
Junior

Name the main entities in Django.

sobes.tech AI

Answer from AI

  • Models - represent a data structure used for interacting with the database. They define fields, data types, and relationships between tables.
  • Views - functions or classes that handle HTTP requests and return HTTP responses. They contain business logic, interact with models and templates.
  • Templates - define the structure of HTML pages. They use Django's template language (DTL) to display data passed from views.
  • URL dispatcher (URLconf) - maps incoming URLs to the corresponding views. It defines the routing of requests within the application.
  • Forms - classes designed to handle user input, validate it, and save data.
  • Admin Site - a built-in tool for managing data in models through an intuitive interface.