Good day,
Am trying to create my own jinja function but i get ModuleNotFoundError: No module named 'app.utils.jinja_methods'
.
In the hooks file i add jinja = {"methods": "app.utils.jinja_methods"}
I have also created a folder in my module app app->utils->jinja_methods.py
, then in the jinja_methods.py
i have created a function
def function()
//code here
return code
I went in a file called myfile.html in the www and called the jinja function but i get the Error ModuleNotFoundError: No module named 'app.utils.jinja_methods'
.
{{ function() }}
Please help