How to get the Host name in Python & Django

 

# How to get the Host name in Python & Django

Here, you will get Host name:

import requests
Hostname = request.get_host

print(Hostname)

Leave a Reply

Your email address will not be published. Required fields are marked *