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 : /watch/uazm2C0T1-lcQIqTgVku2r7lxWzboeysLP=tsil&YNV8JRjxyISxm
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.
Editing Machines & Monitors :
https://amzn.to/2HA6ra8https://amzn.to/2VMBBPwhttps://amzn.to/2RfKWgLhttps://amzn.to/2Q665JWhttps://amzn.to/2OUP21a .
Check out our website: www.telusko.com
courses.telusko.com
Instagram : https://www.instagram.com/navinreddy20
Twitter : https://twitter.com/navinreddy20
Facebook:
Telusko : https://www.facebook.com/teluskolearn ...
Navin Reddy : https://www.facebook.com/navintelusko
Subscribe to our other channel:
Navin Reddy : /channel/UCxmkk8bMSOF-UBF43z-pdGQ
Telusko Hindi : /channel/UCitzw4ROeTVGRRLnCPws-cw
Donation & Support:
Indian Payment : https://www.instamojo.com/@ NavinReddy/
PayPal Id : navinreddy20
Patreon : navinreddy20