Explain mixins in Django.

devquora
devquora

Posted On: Feb 22, 2018

 

A mixin is a special kind of multiple inheritances in Python. There are two main situations where mixins are used:

  • You want to provide a lot of optional features for a class.
  • You want to use one particular feature in a lot of different classes.

Read More from https://stackoverflow.com/questions/533631/what-is-a-mixin-and-why-are-they-useful

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Django Interview Questions

    What does Of Django Field Class types do?

    What does Of Django Field Class types do?..

    Django Interview Questions

    Does Django Follow Architectural pattern?

    Does Django Follow Architectural pattern?..