Exact
Exact copied to clipboard
How to run exact as server / allow access via the web?
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?
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.:
ALLOWED_HOSTS = ["127.0.0.1","deepmicroscopy.org"]