Answer the question
In order to leave comments, you need to log in
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
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']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question