Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run exact as server / allow access via the web? #102

Open
catweis opened this issue Mar 12, 2023 · 1 comment
Open

How to run exact as server / allow access via the web? #102

catweis opened this issue Mar 12, 2023 · 1 comment

Comments

@catweis
Copy link

catweis commented Mar 12, 2023

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?

@maubreville
Copy link
Collaborator

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants