Publishing a Django Web Project with Ignition

I added my Django project, which is running on a virtual server, to my visualization page using an iframe and its URL. However, since it’s running locally, other users can’t access it when I publish the page. Can I solve this issue from within Ignition?

You can't?

If you're going to use an iframe, then this site needs to be accessible to anybody viewing the page with the iframe. Host it somewhere on your network that everybody can reach it.

Actually, I was expecting it to work. Here's the setup:

I created a virtual environment on my machine and added my Django project to it. When I run the project using the terminal (runserver), I can access it from within Ignition. However, only I can see it. Even though the server is running, other users only see a blank page.

I believe the issue is that the project is running on my local server. Is there a way to fix this from the Ignition side without modifying the Django project itself? I hope I explained it clearly.

No.

If you're going to use an iframe, then this site needs to be accessible to anybody viewing the page with the iframe. Host it somewhere on your network that everybody can reach it.

Anybody who is going view this Ignition page in a browser would need to be able to view that django page directly as well. Ignition is not a proxy, and iframes definitely are not a proxy.

2 Likes

This answer is sufficient for me, thank you