How can I test my new web application on local host with dynamic subdomains?
I know how manage it with Django, but I don’t know how can I configure my local server, because I need to edit my hosts file manual with a custom domain like:
127.0.0.1 mydomain.com
127.0.0.1 user.mydomain.com
I’m using Django with gunicorn. Besides testing my application manually by editing the /etc/hosts file like now, is there another way?
Keep editing the
hostsfile is the simplest solution.Years ago, I wasted hours trying to set up a zero-configuration network and then switched back to just editing the
hostsfile. It might be possible now, but it wasn’t then.