How do I deploy a django project that uses the ‘django-hosts’ python packages (for subdomain routing) to route subdomains?
django-hosts python package is used for subdomain routing in django.
With this, I can route my app that is called ‘shop’ to ‘shop.localhost:8000’ instead of the usual ‘localhost:8000/shop’ (as configured in the urls.py file)
When configured probably, it works perfectly for the local server, but when pushed to a live production server, it does work, and I’ll begin to get errors like ‘ERR_SSL_PROTOCOL_ERROR’ even after configuring the DNS.
I’ve tried several cloud hosting services with more than one DNS but it still does work.
Is there any way out ??