human
Django - How to simply get domain name?
assistant
Here is some code to get domain/host name from request object in Django

request.META['HTTP_HOST']

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.