How to Get Form Data and Validate Data in Django (Hindi)
ฝัง
- เผยแพร่เมื่อ 7 มิ.ย. 2024
- 00:00 Get Form Data
01:21 How to send GET Request
02:37 How to send POST Request
02:55 Django Form and Field Validation
03:47 is_valid ( ) Method
04:20 cleaned_data Attribute
07:48 Get Django Form Data in Terminal
Django Playlist:
• Django (Hindi)
Core Python Tutorials:
• Core Python (Hindi)
Advance Python Tutorials:
• Advance Python (Hindi)
HTML Tutorials : goo.gl/O254f9
CSS Tutorials: goo.gl/1QNdiB
SQL Tutorials: goo.gl/U4TcEX
Check Out Our Other Playlists:
/ geekyshow1
SUBSCRIBE to Learn Programming Language !
goo.gl/glkZMr
Learn more about subject:
www.geekyshows.com/
________________________________________________
If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
If you have questions ask below in comment section.
Add it to a playlist if you want to watch it later.
________________________________________________
T A L K W I T H M E !
Business Email: contact@geekyshows.com
Facebook: / geekyshow
Twitter: / geekyshow1
Website: www.geekyshows.com/
_______________________________________________
Make sure you LIKE, SUBSCRIBE, COMMENT, and REQUEST A VIDEO! :)
_______________________________________________
Wow!!! Thank you this was really helpful.
Easy To understand.
Your way of teaching is so simple I get all the things I wanted to learn.
Thank you once again
MASHA ALLAH ap ki videos bhot informations hoti hy
Awesome video to explain basic to advance concepts by explaining each and every thing in a detailed manner. Thanks Sir🥰🥰🥰🥰🥰🥰🥰🥰 I seriously recommed this learning for beginners like me
Best for me, want more on advanced django. From Bangladesh
Good and very useful content you upload
u r great man...
thanks alot
so thanks sir for such course
Good nice clean explaination. 👍
You're best brother :)
Awesome sir..
thank you for this sir
Thank you Guruji
Wow!! Thank u
Thank uh sir
Thank you so much 💖 sir 👏
Sir could you pls upload a video on how to access images and content in template html file from database
Thnx sir
Sir agar template m maltiple form h or agar hum kese perticular for m post method hit karty h tou view.py kese recognise karega ki yh keska post method h...
जोरदार 📹 sir
Sir. Video nahi aa rahi ab
sir ek doubt hai agr har field input lene ke time pe hi data validate kr rha hai to is_valid() function ka kya use
cleaned_data dictionary is_valid() chalane se phle kse ban gya ? u said ki is_valid() ke bad cleaned_data dict form hota hai ?
thanks
sir could you please upload video on how forms works behind the scene (method flow).. Thanks for your valuable efforts..
Read Community Post I answered there
Sir upload more videos in Django plz
Ñice video 👍👍👍
what if i enter only blank spaces using space bar still it will accept form or not
sir is playlist k bad kivy module pr videos bna skte ho app plz
sir signal kaya scene baan raha hein ekbar bata dena...! matlab jab user create kar raha huin tab to koi image field nehi hein....! but mujhe ek profile page chaiye at creation of user how to do that...? using signal...!please sir kuch bhi de dijiye jahase mein kar saku please....!
Sir one more video plz plz plz 🙏🙏🙏
Sir how to active a form in backend in Django?
Sir submit karne k baad firse showformdata() kyu call ho raha hai ? Hamne kuchh specify to nahi kiya submit button me
Sir on submitting the button the date is not getting save why
Sir more video upload please
The view enroll.views.showdata didn't return an HttpResponse object. It returned None instead.
showing that error how to remove that....🙏
form.errors with bootstrap 4 pe 1 video banao please
There are many vedios on social authentication but no is explaing from scratch...pls make a video on social authentication and also covers Facebook and Google authentication...and it's a request
sir mera if condition nhi chal rha he , please help
my terminal is not showing name and email. why?
Dont get distracted keep on going.
Vai mane bangladesh se bol taho......mane apka html or css ki full course complite kyea hai.....app me kon sa playlist dako......
Js
SQL
Python
Python advance
Then Django
sir ji terminal me code show ni ho rha
i m using validation error lekin validation error show hi ni ho rha
Bro my form is not loading after clicking
The view enroll.views.Showformdata didn't return an HttpResponse object. It returned None instead.
sir ye error a rha jb k sb kuch sai sy return krwa rhi hn
phone number validation kese karu?
Where is redirect video
Sir next video??
cleaned_data has been changed to clean only
sir database connection
We have already Completed this Concept
This code removes the error: "object has no attribute 'cleaned_data'"
fm = StudentsRegistration(request.POST)
if request.method=='POST' and fm.is_valid():
print("Data got by POST Method")
else:
fm=StudentsRegistration()
print("Data got by GET Method")
cleaned_data has changed to "clean"
I am getting error that cleaned_data is not defined on fm ??
But the post works perfectly
same pro bro
try this it will work,
form = register(request.POST)
if request.method=='POST' and form.is_valid():
print("its post")
print(form.cleaned_data)
else:
form=register()
print("its get")
return render(request,'register.html',{'form':form})
check if fm.is_valid: instead of if fm.is_valid()
@@puneethms8352 Thank you so much. It got me 2 days to get out of this error. your code is perfectly working.