InterviewSolution
Saved Bookmarks
| 1. |
Explain mixins in Django. |
|
Answer» A Mixin is a special type of inheritance in PYTHON. It is gaining a big rise in Django / Web Application Development. Mexin can be USED to allow classes in Python to share methods between any class that inherits from that Mixin. A mixin or mix-in is a class that contains methods for use by other classes without having to be the parent class of those other classes. Sometimes Mixins are described as "included" rather than "inherited". Django provides a number of mixins that provide more discrete functionality. Different type of mixins are - Simple mixins are -
|
|