oTree Forum >

Tablet device unable to display interface properly

#1 by Rainbow

Hello, I'm sorry to bother you with posting again.
We hope to use our personal computer as a server, and after installing the database, it will continue to work normally until the "otree runprodserver 8000" step. My computer can also open the "IP: 8000" website normally, and the link at the bottom of the room and display page is normal.
For the connection of other devices (such as tablets), we used a router and envisioned placing the other devices on the same LAN and using other devices to open URLs. The device can connect to the local area network, but when the "IP: 8000" interface is opened, an error message "otree invalid room specified in URL" will be displayed. It's a blank interface with only one sentence on it
Has anyone encountered this problem before? How should this problem be solved? Thank you very much for your answer!

#2 by BonnEconLab

The message “Invalid room specified in url” is very easy to replicate: Just enter a URL that does not correspond to any room name that you have specified in the settings.py file.

http://localhost:8000/room/abcde and http://IP.address:8000/room/abcde

will result in that error message if your settings.py file does not include

ROOMS = [
    dict(
        name='abcdef',
        display_name='My abcde room',
    ),
]

In other words, you probably simply mistyped the URL on the tablet that you used for testing.

Write a reply

Set forum username