Quick question: how to set * .domainname.com url in django

I know that there are many examples of how to set the http://domainname.com/username URL. But how to set http://username.domainname.com url in django?

Thinking of a way to have a unique URL for each user like http://username.domain.com , for example http://garry.posterous.com/

thanks

+3
source share
2 answers

As a first step, you need to configure a DNS server to work with a wildcard domain; it is completely outside of django.

(.. dig garry.posterous.com ), HTTP_HOST django.

+3

Source: https://habr.com/ru/post/1714029/


All Articles