Hi, thanks for the video. I have a question, that would require me to share my model code with you, where can I reach you? class Staff(models.Model): name = models.CharField() rank = models.CharField() manager = models. - This manager should be Staff too, and this field need to return the lists of already existing Staff (How do I do that?)
But what is the reason to assign already existing model instance? It is cleaner to assign new model instance to variable like "member_two = Member()" and after do the same thing as for "member_one". No reason to make it harder. Also assigning already existing instance in python is related to indexing how variables are stored in memory. So with "member_two = member_one" you just assign index to second one, and of course it will change both of them, because in memory it is one instance. Just no reason to make it harder.
Join my free course on working with the database and models in Django: prettyprinted.com/djangodatabase
Email confirmation not came kindly check. I check spam also.
You're the man, this is very helpful! Keep it up.
Could you do a video for copying an instance together with its child objects?
Hi, thanks for the video. I have a question, that would require me to share my model code with you, where can I reach you?
class Staff(models.Model):
name = models.CharField()
rank = models.CharField()
manager = models. - This manager should be Staff too, and this field need to return the lists of already existing Staff (How do I do that?)
How to do it but with restframework
How can i access to function property in class model to use it in views.py
Please make Add to Cart tutorial in django
But what is the reason to assign already existing model instance? It is cleaner to assign new model instance to variable like "member_two = Member()" and after do the same thing as for "member_one". No reason to make it harder.
Also assigning already existing instance in python is related to indexing how variables are stored in memory. So with "member_two = member_one" you just assign index to second one, and of course it will change both of them, because in memory it is one instance.
Just no reason to make it harder.
Hi. I really like your video lessons. Please add subtitles for this course-Django Database Essentials
Please can you create a video on Gunicorn, nginx and how to deploy Django apps
Is @Shviko a paid commentator?