Answer the question
In order to leave comments, you need to log in
How to bind a domain to django?
Good evening, how can I bind?
Bought VDS, installed django. If you run the project ("python3 manage.py runserver").
Then when you go to the server ip, nothing happens, I do this - "python3 manage.py runserver [IP VDS:PORT]"
Then it opens by IP address. But how do I bind a domain? (which is bound with ispmanager)
Answer the question
In order to leave comments, you need to log in
Set up according to this tutorial https://www.youtube.com/watch?v=lhO0gcwT0rA
Everything is clearly stated, elegant.
Specify trusted tails in settings.py.
For example. (by default this array is empty [])
ALLOWED_HOSTS = ['site.ru'].
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question