Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question