Class Views in Django (list view) - Django Instagram clone project part 4

Опубликовано: 01 Октябрь 2024
на канале: Abdalla Gubara
2,498
23

A view is a callable which takes a request and returns a response. This can be more than just a function, and Django provides an example of some classes which can be used as views. These allow you to structure your views and reuse code by harnessing inheritance and mixins.
.
In this video, we make the first view for the app which is a class view for the list view, we also add the request needed to call the view at our urls.py file.
.
I would love to know your feedback on these videos and how I could make them much of a value for you.
.
Teaching python is the best thing that I do so I now teach python on 1-on-1 online call sessions if you are interested please let me know in the comments below or send me a dm on the following social media platforms.
.
Instagram :   / jubara_abdallah  
LinkedIn :   / abdalla-ashraf  
Github : https://github.com/abdallahash
Portfolio : https://abdallah-ashraf.herokuapp.com/
.
Also, don't forget to subscribe to the channel for more content.
http://bit.ly/30OgRJZ
.
#python #django #djangotutorial #tutorial