What is Abstract Base Class in Django
django, python

What is Abstract Base Class in Django

What is Abstract Base Class in Django and how we can use it in our applications? Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. One of the principles of Python is “Do not repeat yourself”.  Abstract models in Django are meant to do exactly that. In Django normally Database tables are created from…

Continue Reading

django, python

Usage of *args and **kwargs in Python, extra example in Django

What are *args and **kwargs in python? While defining the functions sometimes we also specify parameters which we will use these parameters when we call these functions. Sometimes we don’t know the number of parameters of functions, in these cases, we use *args and **kwargs. Basically *args and **kwargs allow us to pass multiple arguments or keyword arguments to a…

Continue Reading