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
Thank you again for this great tool!
How can I allow access via different IP addresses? Different to local host.
I tried to change the according line in the settings.py file to:
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", default=['127.0.0.1', 'Bla.Bla.Bla.Bla']).split(" ").
However, it does not work.
On the web, there is this line often without os.environ mentioned to allow other hosts. However, this does also not work?
The text was updated successfully, but these errors were encountered:
Hey there. Sorry that no one answered to your question yet.
There seems to be an issue in your syntax in the case that the environment variable is not set properly. The os.environ.get returns a list (if it does not find the variable), and then you aim to "split" the list by white spaces.
Try hard code the allowed hosts and see if it work, e.g.:
Thank you again for this great tool!
How can I allow access via different IP addresses? Different to local host.
I tried to change the according line in the settings.py file to:
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", default=['127.0.0.1', 'Bla.Bla.Bla.Bla']).split(" ").
However, it does not work.
On the web, there is this line often without os.environ mentioned to allow other hosts. However, this does also not work?
The text was updated successfully, but these errors were encountered: