amir salmani
amir salmani

Reputation: 14

django tenant local and server resolve problem

hello i develop django tenant app

in localhost when i request to ebsalar.localhost:8000 every think is ok

but when upload on server and use curl to check i got

Could not resolve host: ebsalar.localhost

local: enter image description here

on server: enter image description here

note: /etc/hosts same ...

need run the same in server and local

Upvotes: 0

Views: 49

Answers (1)

amir salmani
amir salmani

Reputation: 14

update: i found answer. just add tenant.localhost to /etc/hosts

like this:

127.0.0.1 localhost

127.0.0.1 id-440573

127.0.0.1 ebsalar.localhost # answer

and save

Upvotes: -1

Related Questions