oTree Forum >

Question about designing chat room

#1 by Chen4510

Hi All

I'm doing the experiment by varing the way people chat to each other.

I designed several different chat room based on the original one, named them as chat1 to chat4; and save these html in the same route as chat.html which is in venv\Lib\site-packages\otree\templates\otree\tags. Also, I registered them in the nodes.py which is in venv\Lib\site-packages\otree\templating.

Everything works fine when I run the code in devserver. But when I uploaded the code to otree Hub, it always saying that
 
Application error (500)
TemplateSyntaxError: Unparsable expression 'chat1'

and trackback said the following, marked line 58,

File .heroku/python/lib/python3.9/concurrent/futures/thread.py, line 58, in run‒
55.             return

56.

57.         try:

58.             result = self.fn(*self.args, **self.kwargs)

59.         except BaseException as exc:

60.             self.future.set_exception(exc)

61.             # Break a reference cycle with the exception 'exc'


I don't know what's wrong here. Maybe it means that we cannot change the base code in the venv?

Hope anyone who can explain the reason to me, thank you in advance!

Best,
Chen

Write a reply

Set forum username