In the mapping of my urls.py I use from common functions to views based on classes.
I want to know the difference of calling the view with or without parentheses, considering that if I have the url(r'^$', base_views.index_view)
input, put the parentheses when calling the corresponding function (which in the statement receives only an request object ) throws a TypeError with the following message: index_view () missing 1 required positional argument: 'request' .
I understand that the problem is that when calling one of the functions, the arguments of the same are not supplied as in the declaration, but I do not understand how the Django url function passes these parameters nor why the parentheses make a difference. >