codingforentrepreneurs / try-django Goto Github PK
View Code? Open in Web Editor NEWLearn Django bit by bit in this series
Home Page: https://www.youtube.com/playlist?list=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW
License: MIT License
Learn Django bit by bit in this series
Home Page: https://www.youtube.com/playlist?list=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW
License: MIT License
In the following Raw Create Class Based View
and Raw Delete Class Based View
having issue on page rendering.
i.e. Creation and Deleting happening in the DB but it's not getting reflected in the course_list.html
On creation the new element is not showing,
On deleting it's still showing the deleted element in the course_list
They are working fine in the Class Views. i.e. blog
Hello,
This is a class attribute it's going to be initialized with the latest queries at compiled/running time and in that case when we update/delete something we need to restart the server to have the latest results from the model.
In any case, thank you a lot for this tutorial it's very helpful
Try-Django/src/courses/views.py
Line 90 in a46ab93
DoesNotExist at /product/
Product matching query does not exist.
def post_detail(request,id): postdetail = get_object_or_404(Posts,id =id) context={ "title":postdetail.title, "instance":postdetail, } return render(request,"webindex.html" ,context)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.