In the Django tutorial for the first app in Django we have
from django.http import HttpResponsedef index(request):return HttpResponse("Hello, world. You're at the polls index.")
And then the urls.py has
from django.conf.urls import urlfrom polls import viewsurlpatterns = [url(r'^$', views.index, name='index'),
]
Now my question is what is the "request" parameter passed to the index function, also when the function index is called in urls.py it is not passed and variables it is just called as views.index in the line url(r'^$', views.index, name='index'),