N
N
na_puti_k_istine2016-08-04 18:32:43
Django
na_puti_k_istine, 2016-08-04 18:32:43

HttpRequest or request what's the difference?

Sorry for the dumb question. The documentation says that django works with HttpRequest, but in the examples it is written simply request. What is the secret here? In the case of HttpResponse, this is not observed, there is HttpResponse everywhere. Please clarify)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex_deerk, 2016-08-04
@na_puti_k_istine

request - the name of the variable to which the HttpRequest is passed. Its name can be changed. For example, I'm used to writing req , but it doesn't matter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question