Hi
I want to get complete url of static path of my app as string, but i
want to do it in main() function when config created.
config = Configurator(settings=settings)
config.add_static_view('static', 'digitalmap:static')
#here i want to get http://www.myapp.com/static
Is it possible? how?
URLs in pyramid are generated based on the context of the request.
Therefore if there is no request telling the generator what the
host/port/subpath are, pyramid will not know the correct URL to generate.
You can trick pyramid with a fake request, but that's just the way it is.
You may want to