great explanation , smiling for errors shows developers attitude!!!!!!!! good job telusko team
@vinayak2544 ай бұрын
This one is a very important video. many of other tutorials in youtube did not give this kind of actual operation. By seeing this, I could do what i want to do in my code. Thank you very much
@pavankumarmadasu85985 жыл бұрын
ur energy while explaining anything : always super energy
@ArjunKrishna-lx1re3 жыл бұрын
I am getting error as multivaluedictkeyerror,how can I resolve
@reydavian37233 жыл бұрын
i realize Im kinda off topic but do anyone know a good website to watch newly released movies online?
@graysonmaximilian85163 жыл бұрын
@Rey Davian i watch on flixzone. You can find it by googling =)
@bishopgianni92143 жыл бұрын
@Grayson Maximilian yea, I have been using flixzone for years myself :D
@reydavian37233 жыл бұрын
@Grayson Maximilian Thank you, signed up and it seems like a nice service :D I appreciate it !
@ihcc66674 жыл бұрын
You made it super simple. I have spent hours watching countless tutorial but couldn't get it. Great Job Telusko
@ArjunKrishna-lx1re3 жыл бұрын
I am getting error as multivaluedictkeyerror,how can I resolve
@akashgillella4 жыл бұрын
Anna, super anna! Chala baavunnai tutorials. Nee teaching, energy kuda adirindhi.
@talhatayyab64224 жыл бұрын
When you add 5 plus 6 you get 56... this one was awesome Sir!!! Love your lectures....
@victorystocktv4 жыл бұрын
1:00 form 5:00 As a client, When you send a request to this server, you basically sending an object and that object will have some values (num1, num2) When server send you value back, it will be in a format of response 7:40 add 빼먹지 말자. Thank you
@subikeshps22894 жыл бұрын
To convert the inputs to integer, the int() function works good, even with double quotes. Perhaps in this video, the refresh didn't work correctly. Great explanation sir. I really like your tutorials.
@thirumalairajan35403 жыл бұрын
thanks bro you have solved my doubt
@skviknesh3 жыл бұрын
Flow explained above SIMPLIFIED: Here we need to enter 2 numbers, add them & print result in new page. 1. In the home.html create a form to add 2 numbers home page. a. Need 2 text fields to get values & button to submit it. 2. Need a page to display the results (result.html) - create it. 3. Created a new page, need to register in "urls.py". 4. Now, page is created & registered in URL's => now we need logic for it. a. Create a function to add in "views.py" which gets the response from "home.html b. And return to "result.html 5. Finally, in "result.html" receive response in a variable. 6. DONE. Create a page -> register it in urls -> write logic in views -> receive in results.
@christcentric64385 жыл бұрын
For those who are not getting the result page when clicked on submit please note that in this code it should be
@romit58674 жыл бұрын
didnt worked brother
@geekydevelop2 жыл бұрын
@@romit5867 in result.html check whether the extend base.html is written in single quotes or not
@hasib4joy4 жыл бұрын
When 1st you didn't called for int of num1 a d num2 I just thought 'How a champ like you can miss it.' Letter I got this the way of your teaching. nice way
@varunkrishnaKyathanpally5 жыл бұрын
Awesome tutorial. I understood that once we practice Django more, we can play with it.
@manpreetkaur69085 жыл бұрын
Excellent stuff... I always watch your tutorials whenever get stuck...
@sauravrai58403 жыл бұрын
Great explanation and love the energy and passion which you teach :)
@olkhovskyrus5 жыл бұрын
Another solution to add numbers but not strings is to wrap variables in int() as we sum them. In my case it was c = int(a) + int(b)
@Canadoloteluguammai4 жыл бұрын
Hi Navin, can you explain me what does render module does ? In 6:42 return render(request,"result.html",{'result':res}) what does the third argument does ? how to create that and can someone explain me in brief? And suppose if i want to create a new app how can i add that in the path? what does the path does ?
@barunkumar94295 жыл бұрын
while clicking submit it showing result on next page...Please help.. when we submit "It can show result on same page".
@utsabbera43654 жыл бұрын
.....
@pooja63803 жыл бұрын
Great explaination ..... Awesome tutorial.....
@himanshu_nishad075 жыл бұрын
I am watching all videos of Python, but when result comes 56 it's make laugh for me. It's commonly happen with developers. I have also faced this type of incident, before 4 year ago when I am coding with PHP. But your tutorial is awesome. I have learned lot's of concept of Python. Thanks to making this tutorials.
@ArjunKrishna-lx1re3 жыл бұрын
I am getting error as multivaluedictkeyerror,how can I resolve
@brahmanandadash87304 жыл бұрын
Thanks Naveen....Much appreciated !!!!
@tushargoyaliit5 жыл бұрын
The adding two nos not responsing at all after pressing 'submit' besides code written exactly the same Please help
@tushargoyaliit5 жыл бұрын
it is processing ,not giving any result
@venky4335 жыл бұрын
@@tushargoyaliit give .action=add
@tushargoyaliit5 жыл бұрын
@@venky433 please repeat
@tushargoyaliit5 жыл бұрын
I need to give dot action?
@venky4335 жыл бұрын
@@tushargoyaliit you might not have given action='add' , one more reason is ,file is not yet saved
@shivpradattagrawal18955 жыл бұрын
sir if i am not giving any value then error occurs if after clicking button .
@epic_clickks4 жыл бұрын
Hello, In this episode you have created a button as SUBMIT can we change the text??
@shivamkushwaha6255 жыл бұрын
Amazing explaination. Thank you
@khushichaudharysart2755 жыл бұрын
Please upload more video soon And this series is amazing👌👌❤❤
@jaiprakashnarayanjha88625 жыл бұрын
I am facing problem: The adding two nos not responsing at all after pressing 'submit' besides code written exactly the same
@ashvindhawan1535 жыл бұрын
I am having the same problem
@tushargoyaliit5 жыл бұрын
@@ashvindhawan153 I am also facing the same problem
@venky4335 жыл бұрын
@@ashvindhawan153 , mention add in action
@Ajayk305 жыл бұрын
Even after adding form action it is not reacting
@sarvagyaiitmadras87275 жыл бұрын
It is nothing related to form ="add" try copy it into a normal html page and run it, it will also show the same error of submit button, now what u have to do is "Write the same code of home.html form part in normal html page, then When u get submit button working copy itt back to django
@siddiqzaryab4 жыл бұрын
Hey, Navin! Is it absolutely necessary to have knowledge of HTML/CSS and JavaScript before starting Django or Can we learn it as we work on Django along the way? Your tutorials are awesome by the way. :)
@friendlycreeper1045 Жыл бұрын
It is necessary to have knowledge of HTML/CSS but not javascript cuz we are replacing it with python (Django). You can learn them along the way too
@djameleddinechahrat49264 жыл бұрын
sir, can i use opencv with django?
@306Drago4 жыл бұрын
In home.html you have to change the input type from "text" to int, then only it will accept addition.
@rohansoudey60055 жыл бұрын
In path() what is use of name="" ?
@hasib4joy4 жыл бұрын
If in the future you have to call the path. you can simply call them by the name. suppose calling the result page by /result, you can call call them by the name result. You will get the impact when you will have numbers of urls under one app.
@s2rthoughts4254 жыл бұрын
i think you can use the name instead of page
@abdelolayyan80082 жыл бұрын
Thanks pro Excellent tutorial; I would rather name it {'resultVar':res} to be clear for the student and not confused . Thanks
@marukondamahesh46515 жыл бұрын
please upload more videos sir ,your explanation is amazing .
@Youssouf_Maroci4 жыл бұрын
when I click submit page wouldn't reload and i have this errors: Not Found: /js/scripts.js Not Found: /css/styles.css solution plz !!!
@tancodes3 жыл бұрын
you must have not given the correct path
@rupeshbhosale31424 жыл бұрын
thank you Navin sir,for wonderful tutorial
@DeepakKumar-uz4xy5 жыл бұрын
Like return render(request' "base.html" , {'num': 'val3'} Then what we get
@yashrastogi37265 жыл бұрын
val3
@abhijithnm30715 жыл бұрын
waiting for your next video. can u explain also about creating restful api's
@chetanbodra21544 жыл бұрын
Hey I don't have any idea of phyton so can I do this? ...Till here I understand the basics though as u have taught
@priyamjames70454 жыл бұрын
Hi sir, When we clicked on submit, how it called directly the add url..where u have mentioned it??
@RavindraSingh-kn1sd4 жыл бұрын
we have written add in action of the form tag. So that will tell the page to find add function.
@yufoo4 жыл бұрын
Result.html
@vineethkumar22725 жыл бұрын
Sir small doubt !! what is the difference between single quotes and double quotes in request.GET[].
@omarosman73844 жыл бұрын
What if i am getting the two numbers from the database not from the form? I used the add filter and I used custom filter but it did not work
@suhaasmaheshwar54742 жыл бұрын
The confidence we get when you say we got the answer😃 (vs) The answer 🤣
@surajjena14374 жыл бұрын
Great explanation But why we are not providing the path in urls.py(telusko). Just like we have done in case of home function.
@mdbhardwaj50054 жыл бұрын
I love your videos sir.
@akhaled49904 жыл бұрын
Excellent video!
@shishirsiddharth70693 жыл бұрын
In addition of two numbers part of this I get an error TypeError: 'module' object is not iterable and also in the end it says probably caused by a circular import. Pls help me out and consider me a newbie to django. Thanks!
@manojkumar-lt6wk4 жыл бұрын
If I press submit button twice, it is searching for the sub url- "add/add?.." which is giving me an error.. help please??
@HarshSharma-tp8bi5 жыл бұрын
Which programing languages/software are required for Computer science in Specialization with Big Data Analytics Btech In India....
@gauravpal-tp4pd3 жыл бұрын
Hi, can we calculate with two fields but given three?
@Hey1Demo Жыл бұрын
annayya nuvvu thoopu
@afolabisunday41835 жыл бұрын
Hi Navin nice Job with all your videos, please how can install Jinja on pycharm? Thanks
@samarthbagga76884 жыл бұрын
pip install jinja2
@sandeepmandavilli45124 жыл бұрын
in code u wrote submit but in the page it came submit query how???
@mkbhoir59233 жыл бұрын
I laughed so hard when result came out to be 56,btw nice work sir thank you for your hard work
@kavyashre79175 жыл бұрын
sir, my submit button is not working, in cmd, it displaying GET / HTTP/1.1" 200 477 message. how to resolve this sir?
@yeshapatel52734 жыл бұрын
got any solution??
@kavyanshpandey38234 жыл бұрын
Is anyone of you got any solution 😐
@kavyanshpandey38234 жыл бұрын
@@yeshapatel5273 have you got the solution?
@harshitsukhija96263 жыл бұрын
Is someone having the solution plzz comment below
@marvindakota74785 жыл бұрын
I'm facing problems in getting the submit button.All i see is another text field inspite of entering all the code correctly line by line. Somebody please help!!
@marvindakota74785 жыл бұрын
it is showing this error AttributeError: 'int' object has no attribute 'get'
@tradebrains36425 жыл бұрын
Add action in the form
@sweekardahal98114 жыл бұрын
Yup same here
@pradyothcherry34264 жыл бұрын
@@sweekardahal9811 Its is Actually GET [ ] upper case
@anonymus19812 жыл бұрын
"when you add 5 + 6 we get 56 that's weird " - sarcasm at the top😂😂😂👍
@srushtiagarwal27485 жыл бұрын
sir explanation was good as usual, but Getting Multidictkeyerror: num1 ??? tried to google it, but no sol.
@GRITGRINDGREATNESS3 жыл бұрын
hey Navin great lesson, but am getting this error when i try to GET val1 and val2: tuple object has no attribute get,
@harshitsukhija96263 жыл бұрын
Me too, I think the new version of python had changed some directories.
@harshitsukhija96263 жыл бұрын
I got the solution Use GET["num1"] instead of GET("num1")
@hselin6195 жыл бұрын
7:12, why ' ' ??
@Ansh_Rajpoot_3 жыл бұрын
7:27 it's not the problem og quotes its because you have not saved it...l.
@omarosman73844 жыл бұрын
How can I declare integer variable inside template?
@damodharn45735 жыл бұрын
Hi sir, why your including {% extends 'base.html' %} and {% block content %} and {% endblock %} these lines in Html page can you explain why your taken i tired your way in this video iam getting result blank when I am removing these lines iam getting the correct output
@OasisFinder3 жыл бұрын
its Jinja
@pavanratnala24463 жыл бұрын
I am getting redirected to the same page after clicking submit. Can you please info why this happens? To debug I removed the second url which we provided in views.urls but still redirecting to same page instead of throwing error
@tancodes3 жыл бұрын
this should be your your action in form -> action="add" and this should be your path under urlpatterns -> path('add', views.add, name='add' )
@shubhamarora92125 жыл бұрын
Hi Sir, When I did the coding for adding two numbers. Getting error that 'num1' is not defined that is NameError at /add name 'num1' is not defined. Could , please help for the same.
@saswatapatra59195 жыл бұрын
Check in home.html where you have declared the form tag... In there check the input type="text" name="num1" line... Your mistake should be in there
@saswatapatra59195 жыл бұрын
also dont forget to save your file after alteration
@gopalakrishnadoddi48694 жыл бұрын
sir do we need internet to work in visual studio code
@DeepakKumar-uz4xy5 жыл бұрын
What if we put base.html instead of result.html in add function's 'return
@HGGTUKJN4 жыл бұрын
Is there any chance of using cripsy forms with such solution?
@sumauma67725 жыл бұрын
Very nice sir Explain about base. html file
@avijitpatra39653 жыл бұрын
7:00 thousand times for this channel
@muhammadsultanularafin88465 жыл бұрын
Hi Navin I prefer your tutorials .How to show the result in the same page which contains the input fields?
@barunkumar94295 жыл бұрын
Hi if you got the solution pls reply I am also facing same issue
@muhammadsultanularafin88465 жыл бұрын
@@barunkumar9429 Wilco.
@syrgakomuraliev4 жыл бұрын
4:10 maybe 'add/' - slash
@romit58674 жыл бұрын
thanks bro.. it was saying syntax error
@meghanadokku19093 жыл бұрын
Here while adding the 5 and 6 why the output is 8. We have get the result 11
@nrknithin Жыл бұрын
Video was super informative, but i dont think the second time u got 35 when adding 3 & 5 was because u needed to pass single quotes, I think it was just same cached pages
@rubikumari-sf3hx4 жыл бұрын
How to add Jinja or jinja2 in pycharm 2018,i installed it but it's not getting applied, file*-settings--no options as language and templates Kindly suggest the needful
@akhilpaulose97784 жыл бұрын
pip install jinja
@shaikafrid22043 жыл бұрын
BUT WHEN I RUNSERVER IT IS ONLY OPENING IN MY PHONE,WHEN I SEND THE LINK HE CANT ACCESS IT ,PLESE SOLVE MY PROBLEM
@post_nut_clarity3 жыл бұрын
TypeError. method is not subscriptable while i submit
sir i am not getting result is 56 instead of that I am getting result and a colan what should I do even if anybody knows pleaze answer
@ismail_c_a4 ай бұрын
ok, but why need base.html ?
@adityahirwani16725 жыл бұрын
You are amazing.
@abhinavraj27925 жыл бұрын
I wanted to take image as a input from user and do som image processing. I am trying this but not working. {% csrf_token %} pleease help me out
@isAif475 жыл бұрын
To use images use pillow
@john165845 жыл бұрын
hello sir i am working in pycharm jinja code is not working please tell me what t o do
@siddharthsoni44803 жыл бұрын
can someone tell me how to restart server? 4:00
@namrataingle66534 жыл бұрын
can you please make tutorial of class based views using generics and how do we use function outside the class?
@vrajverma28045 жыл бұрын
Sir, isn't is tool lengthy process!! Why we creating so much files??
@mandeepubhi47445 жыл бұрын
Awesome!.
@fahadmunir54264 жыл бұрын
What's in the base.html?
@ArjunKrishna-lx1re3 жыл бұрын
I am getting error as multivaluedictkeyerror,how can I resolve
@tancodes3 жыл бұрын
it's because you have to use method="POST" in form and then below the form tag and before the input tag type {% csrf_token %} as it is.
@rogerkiran5 жыл бұрын
Sir I am getting error as ‘WSGIRequest’ object has no attribute ‘get’
@nikitachoudhary38785 жыл бұрын
request.GET error nhi aayegi aapne get small letters mai use kiya hoga
@rogerkiran5 жыл бұрын
Nikita choudhary Yes I have used small letters instead of capital letter thanks a lot ...
@joyalmeida65653 жыл бұрын
when i click submit I get an error, "404 page not found"..don't know what I did wrong.
@tancodes3 жыл бұрын
first try to restart the server
@vikramnunna51844 жыл бұрын
i am getting multivaluedictkeyerror what i have to do
@christopherd64554 жыл бұрын
AttributeError at /add 'WSGIRequest' object has no attribute 'Get' wat to do
@subikeshps22894 жыл бұрын
Try using request.GET. It should be in caps
@harshitsukhija96263 жыл бұрын
@@subikeshps2289 I have tried the same but the error is still same
@yagnikdharsandiya68724 жыл бұрын
It's not working in visual studio 2019
@techpro85654 жыл бұрын
import error path not found. How do I solve this ?? I can't make it to work but i used url instead still facing problem. It works well with django.conf.urls import url But when configured home with url('',views.home,name='home') This renders home.html for all urls -----------**EDIT**--------------------------------------------------------------------------------- All issues solved it was an issue with my python version I had two of them installed 2.7 for 64 bit and 3.8 for 32 bit and all my shell command were using python2.7 which lead to installation of django-admin version 1.11 which doesn't have path in its documentation. So I uninstalled the 64bit version and added 3.8 version to the path and reinstalled django.
@saikrishna29723 жыл бұрын
Someone help me. Result page is loading but not fetching anything. Please help !!!!
@pratikwaghaskar44944 жыл бұрын
When i Click Submit button it doesn't responding
@imsaiiif1995 жыл бұрын
MultiValueDictKeyError at /add....thats what i get after submitting Each time,, Sir can you help me with that
@karthikthentu9245 жыл бұрын
def add(request): val1=request.POST['num1'] val2=request.POST['num2'] res=int(val1)+int(val2) return render(request,'result.html',{'result':res}) try the above code its working for me...the cause of error is ..we are trying to get information with out posting it...so it is returning '' MultiValueDictKeyError at /add '' because there is no data to get.. so i tried adding the POST method
@karthikthentu9245 жыл бұрын
Enter 1st number: Enter 2nd number: {% csrf_token %} you can also change method to get in order to use request.GET['num1']
@namesare4fools5 жыл бұрын
Hi There ! Can you do a tutorial on how to do this operation using Ajax.. like, who wants to go to other page just to get the result ?
@khushboodubey2647 Жыл бұрын
😂i got a good laugh when he saya 5 plus 6... 56 😂😂something wrong
@yaswanthmotikavalasa2840 Жыл бұрын
You haven't used csrf token still its working 🤔🤔 ?