If I have a view-class and I want to use it in URLconf, I will have to use its as_view()-method, since the view-class isn't a function, but a class. My question is, in URLconf, why is as_view() called with brackets? Doesn't this mean that the function will be run upon reading URLconf? If so, what is it exactly that as_view does?
Example:
# urls.py
from django.conf.urls import url
from some_app.views import AboutView
urlpatterns = [
url(r'^about/$', AboutView.as_view()), # <--- We're calling the method. Why?
]