Great content Anthony, A huge fan from Nigeria. I am about to begin your Django tutorial series. I just finished Flask Series and I'm pretty good with Flask. :) Continue to make good contents for us. Thanks a lot
HELLo... i want to do a oniline courses website ... and each course should have lectures but when i call it in the template i get the course name repeated with only one lecture .. help plz !!!
what if we have another class object attribute in subject model and how can we relate it to the student model class object attribute minor using the foreignkey
Hi brother, would you please help me, I am new in Django I have two models by name of Buildings(Name, Status, Descriptions) and Floors (Building as foreign key , Name, Status, Descriptions) now in the Floors form I want to display only the building which their status is true.
class Client(models.Model): name = models.CharField('Name', max_length=250) surname = models.CharField('Surname', max_length=250) phone = models.CharField('Phone', max_length=10) ... def __str__(self): return str(self.surname ) + ' | ' + str(self.name) class Checklist(models.Model): client_name = models.ForeignKey(Client, on_delete=models.CASCADE) point1 = models.BooleanField('point1', default=False) point2 = models.BooleanField('point2', default=False) point3 = models.BooleanField('point3', default=False) ... def __str__(self): return self.client_name How can i provide or add all Client properties to Checklist instance? (note: I create Checklist object via forms.py) And when it's done how to get an access to Client properties using Checklist object?
Join my Django Database Essentials course here: prettyprinted.com/djangodatabase
this is what i've been looking for. Thank you :)
This helped solve the problem I was struggling with for like two hours, thank you!!
Pretty simple and straightforward explanation. Thank you for sharing it with us :)
Thank you my dude. This really helped me.
Great content Anthony, A huge fan from Nigeria. I am about to begin your Django tutorial series. I just finished Flask Series and I'm pretty good with Flask. :) Continue to make good contents for us. Thanks a lot
You're welcome! I'm glad you like the videos.
God bless you man... You save an hour of mine. 👍👍
Thanks ! very clear explanation
Thanks Anthony !! Really helpful 👍
great... explained so neatly... thank you.
Excellent video, thanks!
Thank you.
bless your heart!
Thanks a lot
thx Anthony
Thanks for so helpfull video!!!
you are a life saver
Thanks for this video
Awesome...as always :)
Thanks for watching!
Thanks for explain is pretty simple.
If I have two foreignkey from two different classes . Can they get the same related_name?
HELLo... i want to do a oniline courses website ... and each course should have lectures but when i call it in the template i get the course name repeated with only one lecture .. help plz !!!
good
what if we have another class object attribute in subject model and how can we relate it to the student model class object attribute minor using the foreignkey
So the related_name need only for the ORM ? what the analogy in SQL?
Hi brother, would you please help me, I am new in Django I have two models by name of Buildings(Name, Status, Descriptions) and Floors (Building as foreign key , Name, Status, Descriptions) now in the Floors form I want to display only the building which their status is true.
thanks for the help man, But is null=True same as blank=True?
no
null means that attribute could be equal to zero
e.g. item_quantity could be zero, but it can`t be empty
hi bro can u suggest me what i have to do after Django web-development.I m confused what to start next
learn some frontend, and start making web apps
class Client(models.Model):
name = models.CharField('Name', max_length=250)
surname = models.CharField('Surname', max_length=250)
phone = models.CharField('Phone', max_length=10)
...
def __str__(self):
return str(self.surname ) + ' | ' + str(self.name)
class Checklist(models.Model):
client_name = models.ForeignKey(Client, on_delete=models.CASCADE)
point1 = models.BooleanField('point1', default=False)
point2 = models.BooleanField('point2', default=False)
point3 = models.BooleanField('point3', default=False)
...
def __str__(self):
return self.client_name
How can i provide or add all Client properties to Checklist instance? (note: I create Checklist object via forms.py) And when it's done how to get an access to Client properties using Checklist object?
Is it just curiousity or math majors just happen to know a lot more than just math
math.major.all() ==> why can't I do this?