A pyramid (like most WSGI applications) can be mounted on any domain and url prefix. Thus, the application itself does not know which URLs are responsible for it unless you specify it directly in your application (for example, the INI parameter).
request.application_url ... application_url , URL , - .