Httprequest.method attribute exists in Django but i do not know about HttpResponse.method attribute is exists or not ?
HttpRequest vs HttpResponse in Django
HttpRequest vs HttpResponse in Django
|
Dec-10-2019, 10:26 AM
As far as I know, there is HttpResponse method in Django
Dec-10-2019, 02:30 PM
No, it does not. But why would you need it?
HttpResponse objects are your responsibility. Each view you write is responsible for instantiating, populating, and returning an HttpResponse. You will know the method used from the request . https://docs.djangoproject.com/en/3.0/re...se-objects
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Django: How to automatically substitute a variable in the admin page at Django 1.11? | m0ntecr1st0 | 3 | 4,703 |
Jun-30-2019, 12:21 AM Last Post: scidam |
Users browsing this thread: 1 Guest(s)