DEV Community

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

Posted on

3

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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (1)

Collapse
 
gugoan profile image
Gustavo G. Andrade

Top! following here

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay