Рет қаралды 220,935
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 : bit.ly/2qfhUCp
Django Tutorials : • #1 Django tutorials | ...
Github :- github.com/nav...
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 :
amzn.to/2HA6ra8
amzn.to/2VMBBPw
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Check out our website: www.telusko.com
courses.telusko.com
Instagram : / navinreddy20
Twitter : / navinreddy20
Facebook:
Telusko : / teluskolearn. .
Navin Reddy : / navintelusko
Subscribe to our other channel:
Navin Reddy : / @navinreddy
Telusko Hindi : / @teluskohindi
Donation & Support:
Indian Payment : www.instamojo....
PayPal Id : navinreddy20
Patreon : navinreddy20