title: pyramid: get application absolute url
body: <p>Is there any way to get pyramid absolute application url in main() function?
  I want to add it into global settings, so it could be called every where(in templates and js files).
  In pyramid documents there is some functions would help, but all of them need a request object and must call in a view.
  Thanks.</p>