Introduction to Class Meta in Django Models

  Рет қаралды 20,017

Very Academy

Very Academy

4 жыл бұрын

Here we answer - what is class meta in Django models by giving you an example of 7 meta options.

Пікірлер: 50
@MarcusVinicius-ek5oq
@MarcusVinicius-ek5oq 3 жыл бұрын
Just incredible, i'm looking for that kind of content for years. Congratulations
@veryacademy
@veryacademy 3 жыл бұрын
Hi Marcus, thank you - it was just a suggestion from a community member. Let me know if there is anything else you are looking for!
@SergiuPopahopa
@SergiuPopahopa 3 жыл бұрын
Perfectly explained, i finally understood how this meta class is working, i just have one question: how can you change the name of one or many rows after you inherit from the meta class ? Like in your student example, i want to change the 'name' to 'notebook' in the class Student so that row is now notebook not name but still has same properties?
@sushantgupta4757
@sushantgupta4757 7 ай бұрын
You're the Best!!Wow!!
@sumitgupta5415
@sumitgupta5415 3 жыл бұрын
Great Video!!!! Was struggling a lot in this topic but now everything has been cleared .... Waiting for video on Django Generic Class Based Views...... Thank You!
@veryacademy
@veryacademy 3 жыл бұрын
Great suggestion! Thank you!
@sumitgupta5415
@sumitgupta5415 3 жыл бұрын
@@veryacademy Thank You For Helping Us
@nair.network4217
@nair.network4217 2 жыл бұрын
Nicely explained
@abdusamadabdullakhanov518
@abdusamadabdullakhanov518 Жыл бұрын
i find it useful, thank you bro!
@omniscienceisdead8837
@omniscienceisdead8837 2 жыл бұрын
Simple and straightforward, thanks
@veryacademy
@veryacademy 2 жыл бұрын
👍
@vuthyyib2001
@vuthyyib2001 2 жыл бұрын
The best one
@Mathias-cq3zo
@Mathias-cq3zo 3 жыл бұрын
Sir you just saved my day. Thank you
@veryacademy
@veryacademy 3 жыл бұрын
Happy to help
@user-fs9gp6oz8x
@user-fs9gp6oz8x 3 жыл бұрын
Thank you for lessons! You are great!:)
@veryacademy
@veryacademy 3 жыл бұрын
You're very welcome!
@shoxruxsunnatov
@shoxruxsunnatov 3 жыл бұрын
It's just awesome.
@veryacademy
@veryacademy 3 жыл бұрын
👍
@budhathokibijaya6636
@budhathokibijaya6636 3 жыл бұрын
Great and simple explanation 👍.
@veryacademy
@veryacademy 3 жыл бұрын
Glad you liked it! Thank you!
@svengates2802
@svengates2802 3 жыл бұрын
This is a very helpful video!
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Sven 👍
@aungsathit592
@aungsathit592 Жыл бұрын
Thanks for sharing
@veryacademy
@veryacademy Жыл бұрын
My pleasure
@raysilitonga8548
@raysilitonga8548 2 жыл бұрын
I am using django 3.0.5; why it doesn't work for me?
@KevinTempelx
@KevinTempelx 3 жыл бұрын
Thank you!
@veryacademy
@veryacademy 3 жыл бұрын
You're welcome!
@thing2know
@thing2know Жыл бұрын
Hi you did a great job.....I have a doubt......I have two models one is post model and another one is article model...both has date time fields...my doubt is how to display both models data in home.html regarding the date time fields.....like ( Facebook home page ..i.e..our normal post and group post..display in facebook home page)..please make a video by taking simple model thanks ....
@yashasbharadwaj4721
@yashasbharadwaj4721 3 жыл бұрын
thank you so much sir
@veryacademy
@veryacademy 3 жыл бұрын
Most welcome
@dodokwak
@dodokwak 4 жыл бұрын
Thx, very useful.
@veryacademy
@veryacademy 4 жыл бұрын
Glad it was helpful!
@veryacademy
@veryacademy 4 жыл бұрын
Thank you!
@kushalghimire4206
@kushalghimire4206 3 жыл бұрын
Thank you so much
@veryacademy
@veryacademy 3 жыл бұрын
No, thank you, let me know of any other topics you would find useful
@kushalghimire4206
@kushalghimire4206 3 жыл бұрын
@@veryacademy Would love to know more about User management in Django and also about abstract class
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Ranga
@saisanthosh6756
@saisanthosh6756 4 жыл бұрын
Nice Content..Here You got a new subrisciber
@veryacademy
@veryacademy 4 жыл бұрын
Thank you so much. I am slowly getting better at delivering the content, still soooo much more to come. I do take requests so please let me know
@nicenaija9952
@nicenaija9952 3 жыл бұрын
Please make a video on django function in models and @property decoration
@veryacademy
@veryacademy 3 жыл бұрын
Noted
@gyanajyotipradhan4519
@gyanajyotipradhan4519 3 жыл бұрын
Suppose I hv a nested class.outside class is animal_type and inner is animal.ex. cow,horse,dog animals are animal-type of 1 where as lion,tiger are animal-type 2.how to initialise it in django model as well as in view. So for one animal-type object there are many animals objects
@veryacademy
@veryacademy 3 жыл бұрын
Hi Gyanajyoti, its that familiar inside outside animal class type question 😊 This is an essay question which you might find longer solutions if you ask at stackoverflow. I can only really direct you here on KZfaq typing an answer. The database could be suitably normalised to support this type of data storage in a relational manner using foreign keys. Not fully knowing the data you wish you store, you may also consider reading through Proxy models or Django polymorphism - which would benefit from storing model specific data in separate tables. There are a few options here depending on the situation. Regarding the view, once the data is suitably normalised you could just generate and manage the data in the views with appropriate querying of the dataset.
@gyanajyotipradhan4519
@gyanajyotipradhan4519 3 жыл бұрын
@@veryacademy thank you for your response.could u please upload some more videos on django
@zakirhossen4595
@zakirhossen4595 2 жыл бұрын
How can I make a repeatable group fields in my Django model
@veryacademy
@veryacademy 2 жыл бұрын
Abstract base classes docs.djangoproject.com/en/3.2/topics/db/models/
@sonusardar8317
@sonusardar8317 3 жыл бұрын
sir plz make django database router
@veryacademy
@veryacademy 3 жыл бұрын
Noted - soon 👍
@trzztrzz2477
@trzztrzz2477 8 ай бұрын
fogudondonfrigiteliyadizo
What are Django class based views & should you use them?
36:19
Dennis Ivy
Рет қаралды 76 М.
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 148 МЛН
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 41 МЛН
ШЕЛБИЛАР | bayGUYS
24:45
bayGUYS
Рет қаралды 663 М.
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 93 М.
Django REST Framework - Build an API from Scratch
40:39
Caleb Curry
Рет қаралды 195 М.
Python Metaclasses: Everything is an Object
31:23
Real Python
Рет қаралды 6 М.
The Basics of Django Models
37:32
Pretty Printed
Рет қаралды 99 М.
Learn Django - Class-Based Permission Checks
27:09
Very Academy
Рет қаралды 25 М.
Using the Inline Form Set Factory in Django (Part 1 of 2)
19:31
Pretty Printed
Рет қаралды 58 М.
How to Use the Related Name Attribute in Django
10:56
Pretty Printed
Рет қаралды 22 М.
Expert Python Tutorial #3 - Metaclasses & How Classes Really Work
20:41
Adding Extra Fields On Many-To-Many Relationships in Django
17:45
Pretty Printed
Рет қаралды 42 М.
HOW TO CODE DJANGO SERVICES? BUSINESS LOGIC IN DJANGO PYTHON
40:57
Andrey Ivanov | Python
Рет қаралды 4,2 М.
КАК БЫСТРО ОТМЫТЬ ДИВАН?🧽🛋️
0:43
polya_tut
Рет қаралды 2,3 МЛН
Будьте вежливыми
0:14
Pavlov_family_
Рет қаралды 19 МЛН