Django-hosts is a library and recognized third-party package on Django's official website that allows for easy routing of web-app sections to different or multiple sub-domains. Use this tag for questions regarding direct implementation of django-hosts specifically.
What is django-hosts
?
django-hosts
is a library and recognized third-party package on Django's official website that allows for easy routing of web-app sections to different or multiple sub-domains.
The library's official documentation can be found here. The project GitHub can be found here.
Example use cases
Say for instance you own the domain mywebsite.com
and as a part your web project design, you want to serve specific content at <sub-domain-1>.mywebsite.com
& <sub-domain-2>.mywebsite.com
.
This allows your web project to use domains like:
help.mywebsite.com
mobile.mywebsite.com
Your project can also use "user specific sub-domains" such as:
zeke.mywebsite.com
elizabeth.mywebsite.com
These techniques can give a web project better looking and more organized path structure.
Where to learn more
Below are some links to learn more about django-hosts
and how to utilize it in your Django projects.