bro you have made a really awesome series. I have also tried code with harry Django series but the way you're explained a topics are very cool this is the best Django series for a beginners
Sir aapne bola ki djnago se pehle HTML /CSS /JavaScript/bootstrap/pip ae sab aana chaliae but me non it se hu or Mene sif core Python advance Python and SQL Jo aapki playlist he to me ne ayi sikha he abmuje HTML.css.and other bi sikhna padega djnago ke liye plz bataae sir and me ane advance Python ke last vidio ne questions pu6a he aapne ans nahi diya sir plz help me
def __str__(self): return f"{self.course_titles} {self.course_duration}" ===Problem is that===>only A,B or C show in admin pannel in place of duration how to solve this issue , any idea?
You should write underscore two times at starting and ending for example: __str__() you only write only one underscore! check again! Good Luck :) Happy Coding!
@@sailendrachettri8521 Hey brother, I my model I have 2 foreign keys I want to return their values but its giving error can you help why is it happening so?
@@geekyshows but Sir ye free to nahi hai isme to Paise pay karna hoga Sir I have no money this time please help me aap muje free me Gmail par send kar dijiye please
Free me to sirf ek hi tarike se mil sakta hai.. Khud bana lijiye.. kyunki jab dusre log banate hai to usme unka samay unki mehnat lagti hai unka paisa lagta hai...
bro you have made a really awesome series. I have also tried code with harry Django series but the way you're explained a topics are very cool this is the best Django series for a beginners
Glad to hear that
bilkul bro
Kya baat h sir thank you so much🙏 aaj ka din bann gya first view and comment😀😀
best explanation of __str__ function ❤.... no one else explained it so well... thanks😊
Awesome.... Its real Geeky show 🤓aapko dekh dekh k hun b geeks ban jayenge
You just make this concept so simple, Big thanks sirji.
Sir I just finished watch this video..and ...it is ver helpful ....and your voice is also good....clearly ❤❤❤❤...thankyou sir
21:38 so helpful and imp to learn😍 thanx lot
It's so helpful sir likewise upload two videos daily plz.. 👍👍
Your great to make understand concepts.thank you very much sir
Sir aapne bola ki djnago se pehle HTML /CSS /JavaScript/bootstrap/pip ae sab aana chaliae but me non it se hu or Mene sif core Python advance Python and SQL Jo aapki playlist he to me ne ayi sikha he abmuje HTML.css.and other bi sikhna padega djnago ke liye plz bataae sir and me ane advance Python ke last vidio ne questions pu6a he aapne ans nahi diya sir plz help me
i am from nepal thank you sir aapke es django ki video k liye
Me from sikkim! :)
Glad to see you!
Very helpful video...Thank you very much ...
awesome, your videos are very nice and helpful, keep it up,
Bro AAP har example me Sonam ka naam jaroor lete ho,
kaun hai Sonam?? :)
indent properly __str__ method with your class to make it work
no matter, pylint is disabled so it will work properly
course_duration = [
("A", "1 Month"),
("B", "2 Months"),
("C", "3 Months"),
("D", "6 Months"),
("E", "Year"),
]
course_duration = models.CharField(max_length=10, choices=course_duration, default="C")
def __str__(self):
return f"{self.course_titles} {self.course_duration}"
===Problem is that===>only A,B or C show in admin pannel in place of duration how to solve this issue , any idea?
__str__()not showing data in admin panel
---------------------SOLVED---------------------
from django.db import models
# Create your models here.
class Student(models.Model):
stud_id = models.IntegerField()
stud_name = models.CharField(max_length=70)
stud_email = models.EmailField(max_length=70)
stud_pass = models.CharField(max_length=70)
def __str__(self):
return self.stud_name
copy and paste ,its working
Bhai apne notes ma ye important point bhi add kr diya kro jese apne bola phle table bnao phr create kro superuser ni to error aata h auth user related
Hello Sir, Please anriod studio ka project ka video upload kareyena......
Thank you Guruji
thanks
Sir isme student add nahi ho pa rahi hain error aa jati hai no such table
Good....
Awesome
Hey, In my model I have 2 foreign keys I want to return their values but its giving error can you help why is it happening so?
Foreign key ek hi rakh sakte hai na shayad
@@poonamyadav7552 nhi jyada rkh skte hai
just a question "Who is Sonam??"
Sonam Bewafa hai sir🤣🤣... In this entire series Sonam is the only constant
May you provide all topics notes in pdf file plz sir
Sir, __str__method not working? Please suggest some measures ....
mention __str__ function within the class indentation
what if there is more than one `student of same name
done
__str__()not showing data in admin panel
Same
Same problem
mention __str__ function within the class indentation
Bro, __str__ method won't work. What should I do?
You should write underscore two times at starting and ending for example:
__str__()
you only write only one underscore! check again!
Good Luck :)
Happy Coding!
@@sailendrachettri8521 Hey brother, I my model I have 2 foreign keys I want to return their values but its giving error can you help why is it happening so?
@@iambhushan418 I've no ideas
Copy your error and google it. Hope you will find something from it.
@@sailendrachettri8521 ohk thanks
mention __str__ function within the class indentation
Sir __str__ not showing data in admin panel.. As it shows
Give double underscores
mention ___str___ function within the class indentation
I don't know y but my __str__ method not working
Have you found any solution?
@@MayurK-ko9st use double underscores not single
@@poonamyadav7552 I used double underscore only
You are Not defining your function in class only
mention ___str___ function within the class indentation
_str_method not work
mention ___str___ function within the class indentation
Dear bro & Sister agar kisi ke pas BCA/CS ka project ho to please muje Gmail par send kar dijiye plz muje June me submit karna hai
Watch this th-cam.com/video/dFcpJJeNfM4/w-d-xo.html
@@geekyshows but Sir ye free to nahi hai isme to Paise pay karna hoga Sir I have no money this time please help me aap muje free me Gmail par send kar dijiye please
Free me to sirf ek hi tarike se mil sakta hai.. Khud bana lijiye.. kyunki jab dusre log banate hai to usme unka samay unki mehnat lagti hai unka paisa lagta hai...
@@geekyshows ok Sir no problem
@@geekyshows Accha Sir ye to baja dijiye agar mai aapka project buy karunga to Jo project report hogi wo kitne Page ki hogi?
First
__str__()not showing data in admin panel
Bro there is some indent problem
Check make your def ___str__(self)in class only