You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the last line only retrieves the IP of the current machine. I'd argue that adding the line socket.gethostname() by itself would be beneficial, as more often than not you access the webpage in a local environment by its name rather than its ip.
Using the other value in the array returned by socket.gethostbyname_ex() returns the hostname with the domain attached, and as such might be less useful than simply socket.gethostname()
The text was updated successfully, but these errors were encountered:
Currently, the settings.py file for Django contains the following allowed hosts:
AutomationOrchestrator/automation_orchestrator/automation_orchestrator/settings.py
Lines 70 to 72 in ab6943a
Where the last line only retrieves the IP of the current machine. I'd argue that adding the line
socket.gethostname()
by itself would be beneficial, as more often than not you access the webpage in a local environment by its name rather than its ip.Using the other value in the array returned by
socket.gethostbyname_ex()
returns the hostname with the domain attached, and as such might be less useful than simplysocket.gethostname()
The text was updated successfully, but these errors were encountered: