1👍
You cannot change the http protocol within a Django view.
You would have to make the change at the HTTP server level rather than at the application’s view level.
For example, if you are using Apache, you would have to change the Apache configurations.
Source:stackexchange.com