DEV Community

Cover image for Building a Fast Web Interface in Django for Data Entry
Angelica Lo Duca
Angelica Lo Duca

Posted on

Building a Fast Web Interface in Django for Data Entry

In this article I describe a simple strategy to build a fast Web Interface for data entry in Django. The article covers the following topics:

  • Overview of Django
  • Install Django
  • Create a new Project
  • Create a New App
  • Create your Database
  • Build the Data Entry Web Interface

1 Overview of Django

Django is a Python Web framework designed to build fast Web Applications. A single instance of Django is called Project. A Project may contain one or more Apps.

Django follows the Model-Template-View (MTV) architecture. MTV differs from the Model-View-Controller (MVC) architecture in the sense that the Controller part is already implemented by the framework itself through templates.

The Django MTV architecture is composed of the following components:

  • Model: it defines the logical data structure. In practice, a model is a Python class, which represents a single table in the database. All the classes representing the logical structure of the database are stored in a script named models.py.
  • View: it defines the business logic, in the sense that it communicates with the model and translates it into a format readable by the Template. A view is a Python function, which takes a request as input and returns a Web response as output. All the functions representing the business logic are stored in a script named views.py.
  • Template: it defines the structure or the layout of a file, such as a HTML file. It is a text document or a Python string encoded through the Django template language. All the templates are stored in a subdirectory of the App named templates.

https://towardsdatascience.com/building-a-fast-web-interface-in-django-for-data-entry-62f24947ef23

Top comments (1)

Collapse
 
gugoan profile image
Gustavo G. Andrade

Top! following here