oTree Forum >

Django logical statements work locally but fail on Heroku

#1 by noob_forever

I've deployed a new project that uses a set of logic statements to determine what subjects see on a page. These statements work perfectly when testing locally but fail once the program is uploaded to Heroku. 

An example of the offending statements: 

 {{if player.variable >= C.variable && C.variable >= player.variable }}
 Show something
 Show a different thing
 I suspect this may have something to do with adding Python to my requirements.txt for a different experimental program yesterday. 
 Any ideas here?

#2 by Chris_oTree

Change the "&&" to "and"

Write a reply

Set forum username