Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Django Flow

In this lesson, you’ll walk through the flow of a request through a Django app. You’re going to see what happens when you type an address into your web browser and press Enter.

The first address point inside the Django app is the urls.py in the management app. That file will direct you towards the urls.py in the app you want to go to. That will forward you to views.py, where the code logic happens. The functions in there will direct you towards a specific template to render and return to the user to see in the browser.

Comments & Discussion

lewiuberg on Jan. 9, 2020

Hi! Just wondering, is this the MVC pattern in action? Trying to connect the dots :)

Martin Breuss RP Team on Jan. 10, 2020

@lewiuberg - yes… kind of! :)

Django approaches the MVC topic a bit different than other frameworks, you can read this official answer to a related question.

The basic idea of MVC is to separate different topics (e.g. representation and code logic) into separate areas of your code. And you can see some of that in action when we’re looking at the different parts.

Here’s a nice article that talks some more about it. Hope this helps!

emalfiza on March 17, 2020

@Martin Breuss, a million thanks to this amazing explanation of Djano flow…

Become a Member to join the conversation.