Register to get access to free programming courses with interactive exercises

Microframeworks Key Aspects of Web Development in Python

A web application's backend will spend most of its time handling requests from the front end. The response to the request depends on what address we requested and what HTTP verb we used. Most often, developers use two verbs:

  • POST request
  • GET request

You can learn more about HTTP protocol verbs in the corresponding course. For now, we'll clarify that the verb is the same part of the query as the URL in the browser address bar.

Virtually any web application will need to:

  1. Accept the request
  2. Determine which handler we should execute
  3. Run the handler and prepare the response
  4. Return the response to the customer

This set of actions remains virtually unchanged from project to project, which is why it is in the framework. We will discuss how microframeworks work and where to use them.

What is a framework?

A typical framework works in the "Don't call us, we'll call you ourselves" mode:

  • The framework user embeds their functions in the ready-made framework
  • The framework decides when and which functions to call

It is the difference between a framework and a regular library — libraries usually give control to the user. Let's look at an example of code built using a web framework:

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.bookmate">Bookmate</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.healthsamurai">Healthsamurai</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.dualboot">Dualboot</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.abbyy">Abbyy</span>
Suggested learning programs
profession
new
Developing web applications with Django
10 months
from scratch
under development
Start at any time

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.