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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
When I run my flask app locally, the Jinja2 urlize filter works beautifully, converting the URL from text to hyperlink.
Here is how I am implementing (beautifully simple) in the template:
When, however, I deploy the app via GAE (3.7, standard environment), the URL is just text on the page, without the hyperlink.
What is going on here? How do I remedy this?
George (Cloud Platform Support)
unread,
Oct 18, 2019, 11:55:18 AM10/18/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?