1👍
You can use the package django-hosts to do this for you. It changes the url conf based on the domain name. It does this in the middleware layer.
It’s very easy to set up.
Source:stackexchange.com
1👍
You can use the package django-hosts to do this for you. It changes the url conf based on the domain name. It does this in the middleware layer.
It’s very easy to set up.