TemplateLoadError: Loader cannot locate the template file

119 views
Skip to first unread message

Alyiah Proctor

unread,
Nov 27, 2021, 10:29:53 PM11/27/21
to oTree help & discussion
I have uploaded an app to heroku and am recieving this error when it reaches a page, but it works fine on devserver. I saw in an earlier discussion it said to make sure both servers were running the same version. How would I go about checking that?

Chris @ oTree

unread,
Nov 27, 2021, 10:33:22 PM11/27/21
to Alyiah Proctor, oTree help & discussion
are you using oTree Hub to deploy?

Sent from my phone

On Nov 27, 2021, at 7:30 PM, Alyiah Proctor <alyiah...@gmail.com> wrote:

I have uploaded an app to heroku and am recieving this error when it reaches a page, but it works fine on devserver. I saw in an earlier discussion it said to make sure both servers were running the same version. How would I go about checking that?

--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/658f2d47-d460-4980-b2e5-d6efcd89f1a8n%40googlegroups.com.

Alex D

unread,
Nov 28, 2021, 5:31:52 AM11/28/21
to oTree help & discussion

You are probably developing on a MacOS (or windows (?)) machine? These OS's don't care about capitalisation of file names (i.e. Template.html is treated the same as template.html or TemPlATe.html.) Heroku and most Linux based systems do. Make sure your template name is spelled correctly where you call it (i.e. in pages.py or init.py) (respecting capitalisation).

Alyiah Proctor

unread,
Nov 28, 2021, 10:21:57 AM11/28/21
to Alex D, oTree help & discussion
This worked! I had the html file capitalized and the page class lowercase. Thank you for the help 

You received this message because you are subscribed to a topic in the Google Groups "oTree help & discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/otree/iUqjgZ7viJ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/1590ee11-e289-4ab1-99ec-d2bd933ac8b3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages