Hello, if I hardcode the address in app_cfg it works, although I really don't want to do that, as it could vary between servers. The problem is, by this point, the params from development.ini are not available yet. They become available AFTER make_base_app has been called, but by then all resources have already been bound to the default address. I've read the docs at http://turbogears.readthedocs.org/en/latest/turbogears/configuration/appconfig.html , but after countless failed attempts, I'm still stumped as to what to do.
Thanks Il giorno martedì 24 marzo 2015 13:11:52 UTC+1, Alessandro Molina ha scritto: > > custom_tw2_config.res_prefix is the option to tell TW2 where to serve its > resources, > but I suppose that you are mounting the whole project in a subpath, in > such case it should be handled by SCRIPT_NAME but I didn't check it is > properly managed by TW2. > > On Mon, Mar 23, 2015 at 9:11 AM, Luca Verardi <[email protected] > <javascript:>> wrote: > >> Hello everybody, >> I have a question concerning how TurboGears2 handles resources. >> This is my server's address: >> >> http://root.myproject.com/myproject >> >> External resources are instead given this address: >> >> >> http://root.myproject.com/tw2/resources/myproject/public/javascript/jquery-1.11.1.min.js >> >> How do I tell TG2 to go look in >> "http://root.myproject.com/myproject/tw2/[...]" instead of >> "http://root.myproject.com/tw2/[...]"? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TurboGears" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/turbogears. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

