-
Flask 怎样获取当前页面的相对路径
参考资料:
http://flask.pocoo.org/docs/0.10/api/#incoming-request-data
Provides different ways to look at the current URL. Imagine your application is listening on the following URL:
http://www.example.com/myapplicationAnd a user requests the following URL:
http://www.example.com/myapplication/page.html?x=yIn this case the values of the above mentioned attributes would be the following:
path /page.htmlscript_root /myapplicationbase_url http://www.example.com/myapplication/page.htmlurl http://www.example.com/myapplication/page.html?x=yurl_root http://www.example.com/myapplication/