Django | capture sub domain as a string
- by MMRUser
How do I capture a part of sub-domain name and get that name as a string in my views through a request.
ex:
user.domain.com
developer.domain.com
I want to capture the user part of this domain name through a request (lets say when the first time user hits the page).
Thanks.