Answer the question
In order to leave comments, you need to log in
How to set a domain name on a django site?
Good afternoon, please tell me how to correctly set up a domain name on a djago project when hosting it on a vps? Installed and configured the site, but it starts only when you enter the server ip address on port 8000, the domain is added to allowed_host.
Answer the question
In order to leave comments, you need to log in
First, you need to register this domain. After registration, delegate it (if your registrar does not provide this service). For delegation, I use DNS from Yandex . After passing the delegation (the process can take up to 72 hours), add an A-record from your server's ip in the DNS Editor .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question