Closed bachirelkhoury closed 5 years ago
Turns out it's to do with jsonb in the postgresql database. It is allowing to store a plain string, instead of a valid json. Dirty data (plain strings) were working, but on server we have valid jsonb which wich was causing the issue. All sorted by:
template_string = json.dumps(template_from_db)
rendered_data = pystache.render(template_string, template_data)
I am rendering a template loaded from a database using Python3.7 on Ubuntu 18.04.
Getting this error:
pystache.common.TemplateNotFoundError: File 'ict.mustache' not found in dirs: ['.']
I'm not sure why is it even looking for a mustache file, I'm not using any.
Also note that this same app is working correctly in similar dev environment on Mac. What's that ict.mustache file?