Why is Jinja2 urlize filter not working with GAE flask app?

22 views
Skip to first unread message

BLONDEV INC

unread,
Oct 17, 2019, 5:06:29 PM10/17/19
to Google App Engine

When I run my flask app locally, the Jinja2 urlize filter works beautifully, converting the URL from text to hyperlink.  

  Snip20191017_10.png

Here is how I am implementing (beautifully simple) in the template:  



Snip20191017_12.png



When, however, I deploy the app via GAE (3.7, standard environment), the URL is just text on the page, without the hyperlink. 

  Snip20191017_11.png


What is going on here? How do I remedy this?

George (Cloud Platform Support)

unread,
Oct 18, 2019, 11:55:18 AM10/18/19
to Google App Engine
You probably did not register this filter; you have to register the filter using a statement similar to: jinja_env.filters['variable_name_here'] = identifier. 

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching App Engine and Cloud SQL. For coding and programming architecture, as well as setting up Jinja urlize filters, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. You have done the right thing by posting Why is Jinja2 urlize filter not working with GAE flask app?
Reply all
Reply to author
Forward
0 new messages