Re: How to use Pyramid/models outside of WSGI/Paster

2011-06-10 Thread Thomas G. Willis
But that's really a python pastedeploy thing. you dont need the import pyramid to get the app initialized from configuration. Python Paste has docs, http://pythonpaste.org/deploy/#basic-usage Maybe pyramids docs could elaborate on the capabilities of pastedeploy in this section.

How to use Pyramid/models outside of WSGI/Paster

2011-06-08 Thread somewhatofftheway
I'm new to Pyramid and can't figure out how to do something which seems like it should be quite a common requirement. Basically, I want to write a script that will use the database models but will not need to do HTTP requests. The idea is that I can run it by cron or whatever. The equivalent in

Re: How to use Pyramid/models outside of WSGI/Paster

2011-06-08 Thread Gael Pasgrimaud
Hi, I guess that this thread already contain a reply: http://groups.google.com/group/pylons-discuss/browse_thread/thread/fb1f4c49cf34eee2?hl=en# But I'm agree that this point should be added in the pyramid documentation with a recommended way to do that. It's a common need -- Gael On Tue, Jun