On Thu, Jul 25, 2013 at 10:27 AM, Craig Small <[email protected]> wrote:
> On Tue, Jul 23, 2013 at 09:47:34PM +0200, Alessandro Molina wrote: > > This is probably because your test didn't load the application and so > the > > config is not available. > > Check in newly quickstarted TG23 applications the "load_app" function > and > > make sure it's called before setup_db (like in > > tests/model/__init__.py:setup() in newly 2.3 quickstarted apps) > That was it, there used to be setup_db only, now you need the load_app > beforehand as you said. > > I have a more serious problem with 2.3, I cannot get it to work through > WSGI. Every url under it gives me a 404. I tried it with both the > paster and gearbox serve and they work fine. I try a test.wsgi file and > that works fine, but every request to the application gives me a 404 and > it's not the webserver giving it but the application throwing the 404 > (they look and log differently). > > Not sure if it is relevant, but its mounted on a subdirectory. So > http://enc.com.au/ is not WSGI but http://enc.com.au/itools/ is. > I rolled back to 2.2.2 and it works ok again. > > That's really curious. I have to admit that the projects I have on production using TG2.3 have their own domain, so I might have missed this. I'll give a try at deploying something in a subdirectory and let you know. Are we talking about mod_wsgi using ScriptAlias right? > I know there was some work in the routing done for 2.3 so I'm guessing > I'm hitting a snag there. Any help to sort this would be appreciated. Most of the routing changes were related to the move to crank, which happened actually in 2.2. The only difference between 2.2 and 2.3 is that 2.3 disables "routes" by default and goes directly to crank. You might check if that is the source of your issues by semply setting base_config.enable_routes = True in app_cfg.py But I suspect it shouldn't change much unless you were actually using routes. -- 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/groups/opt_out.

