M
M
Mikhail2018-03-05 17:45:01
Django
Mikhail, 2018-03-05 17:45:01

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

2 answer(s)
M
Michael, 2018-03-06
@TheMaxai

Set up according to this tutorial https://www.youtube.com/watch?v=lhO0gcwT0rA
Everything is clearly stated, elegant.

K
Konstantin Malyarov, 2018-03-05
@Konstantin18ko

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 question

Ask a Question

731 491 924 answers to any question