Summary
Keywords
Full Transcript
In this lecture we will discuss: we will doing operation on our code #1 create result.html file in templates #2 create a function in views.py name add function #3 create a url for add function #4 create a form in home.html #1 create result.html file in templates -- in this file we will show the result of our operation -- using {{}} we will show the result #2 create a function in views.py name add function -- in this function we will take two number from user -- we will add these two number and store in a variable -- we will pass this variable to result.html file -- we will return render(request,'result.html',{'result':result}) #3 create a url for add function -- in this url we will pass two number -- we will call add function and pass these two number -- we will return the result of add function #4 create a form in home.html -- in this form we will take two number from user -- we will pass these two number to add function Python Tutorials for beginner : https://bit.ly/2qfhUCp Django Tutorials : https://www.youtube.com/watch?v=SIyxjRJ8VNY&list=PLsyeobzWxl7r2ukVgTqIQcl-1T0C2mzau Github :- https://github.com/navinreddy20/Python- Django is a high-level Python-based free and open-source web framework, which follows the model-view-template (MVT) architectural pattern. It is maintained by the Django Software Foundation (DSF). Django's primary goal is to ease the creation of complex, database-driven websites. Some well-known sites that use Django include the Public Broadcasting Service, Instagram, Mozilla, The Washington Times, Disqus, Bitbucket, and Nextdoor. Check out our courses: AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO10 (10% Discount) Complete Java Developer Course Batch-4: https://go.telusko.com/Complete4 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) Check out our website: www.telusko.com Donation & Support: Indian Payment : https://www.instamojo.com/@NavinReddy/ PayPal Id : navinreddy20 Patreon : navinreddy20
