jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

Custom domains #92

Open alexanderisora opened 5 years ago

alexanderisora commented 5 years ago

Hello everyone! Thanks for the awesome library. I'm building a website generator. My users are able to create websites and host them on subdomains. Django-hosts does the job perfectly. Yay!

But how can I let my users set up a custom domain? I'm stuck and don't know where to dig. Any piece of advice would be much appreciated.

alexanderisora commented 5 years ago

I store both the subdomain name and the custom domain name of each user. But I have no idea how to route requests from a custom domain to a subdomain.

professorhaseeb commented 4 years ago

were you able to resolve this?

nerdoc commented 2 years ago

you could try using a wildcard?