The website is accessible by other computers by inputting the ip address of the host computer. However, the jinja2 markups are shown. Jinja2 markups image
And the links which use url_for do not work either. Non-working url image
What is the issue here? Please help! Thanks!
flask / jinja is not a "server page" type of technology like PHP, so jinja templates (which by themselves know nothing about flask - jinja can be used from any Python code) won't be automagically "interpreted". You have to configure your apache server to serve content from flask as documented here : http://flask.pocoo.org/docs/deploying/mod_wsgi/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.