1\. Django Web Project Tutorial - Introduction

Mar 22, 2020 18:06 · 402 words · 2 minute read build details case users dessert

Hello, my name is Roberto García and I’m an Associate Professor at the Universitat de Lleida, Spain, and I’m going to present a Django tutorial that we are using in the Web Project subject in the computer science degree at the Universitat de Lleida. In this tutorial we are going to see how to develop Django web application using Behavior Driven Development approach. You have all the materials on the code for this project available online from GitHub at the URL that I’m highlighting right now in your screen. At this repository you have all the code and once also the main with me that details all the steps in order to fulfill this development what we are going to develop in this case is a Django web application called my recommendations that is a web to application that tries to get input from its users about recommendations regarding different topics in our case in the context of this project we have developed for the moment just one application that is called my restaurants that is about recommending restaurants this is the basic structure of django application this is a web application so we will have users accessing it through a browser whenever they type a URL in the browser if it’s URL corresponding to our web application this will go through urls file that has like all the roots in our application and drives them to the corresponding bill in the bill we will have the domain logic of our application that will be responsible for contacting the different models connected with a particular feature that that view is implementing for instance restaurant or dessert in this restaurant these entities in the domain are implementing usage using jungle models and jungle models are the responsible for connecting to the database in order to provide persistence to these entities so if they are not already loaded they will go to the database to retrieve the import objects in the current request these objects one model as part of this model layer will be passed back to the BIOS that will execute the different processes regarding the particular feature that we are requesting and finally this will go back to the templates that will build the HTML pages that are at last shown back to the user so this is the whole flow of one of these requests through our web application .