R
R
ramazan2015-06-08 09:53:27
Django
ramazan, 2015-06-08 09:53:27

What is ALLOWED_HOSTS responsible for?

From the Horizon documentation: "This list should contain names (or IP addresses) of the host running the dashboard;"
From the django documentation: "A list of strings representing the host/domain names that this Django site can serve."
Should the option contain the names/ip_addresses of the host on which the dashboard is running, or the names/ip_addresses of the hosts that will have access to the dashboard?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
un1t, 2015-06-08
@voiceofnoise

Responds from which addresses this application will be available.
Those. if we have "server_name example.ru, dev.example.ru, test.example.ru" specified in nginx, then the application will be available at all these addresses, and in the sale we want it to be available only at the main one, respectively, we can specify ALLOWED_HOSTS= ['example.ru']

P
Puma Thailand, 2015-06-08
@opium

Take it literally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question