Re: Django inside WSL cannot connect to host database

2023-05-31 Thread DieHardMan 300
Are you set "ALLOWED_HOSTS" in settings.py for "172.21.48.1" ? ในวันที่ วันพุธที่ 31 พฤษภาคม ค.ศ. 2023 เวลา 14 นาฬิกา 38 นาที 48 วินาที UTC+7 Robbi Nespu เขียนว่า: > > Hello, > I am using windows machine to develop django project but now i want to > make my program run on WSL and keep the DB a

Django inside WSL cannot connect to host database

2023-05-31 Thread Robbi Nespu
Hello, I am using windows machine to develop django project but now i want to make my program run on WSL and keep the DB are running on host (windows machine), This mean the Django program inside WSL will try to connect to postgresql on WINDOWS. > $ cat /etc/resolv.conf | grep name > name