running wsgi app with paver serve ?

5 views
Skip to first unread message

Rick Harding

unread,
Jul 28, 2009, 11:27:22 AM7/28/09
to mich...@googlegroups.com
I'm trying to play around with a wsgi starter app. The meeting on it
was good, but I really wanted --reload so figured I'd try to get the
little test app going with paster serve. I can't seem to figure out
what to the 'use' in the config should be to point it to the
application. With the wsgi simple_server it's pretty easy.

To test this out I just setup a hello.py with a single method
'application()' that is the wsgi app. I tried to move the wsgi_app
into a module, but then I get errors from paster on it wanting a new
.ini file in the module for config.

Does anyone have a sample app layout/paster config they can share?
Everything I can find is full framework TG/Django and the docs make it
seem like I'm missing some standard way to setting up wsgi apps on the
code side so the config works ootb.

Thanks

Rick

Rick Harding

unread,
Jul 28, 2009, 12:27:57 PM7/28/09
to Michigan Python Users Group
On Jul 28, 11:27 am, Rick Harding <deuce...@gmail.com> wrote:
> I'm trying to play around with a wsgi starter app. The meeting on it
> was good, but I really wanted --reload so figured I'd try to get the
> little test app going with paster serve.
> ....

Just a quick correction, sorry for the typo in the title, meant paster
serve.

Rick

Justin Driscoll

unread,
Jul 28, 2009, 1:13:07 PM7/28/09
to mich...@googlegroups.com
I have no experience with Paste's server but Werkzeug's development server supports reloading:


Sorry for the non-answer :)

--

Justin Driscoll
Driscoll Design and Development
708.DRI.SCOL
http://driscolldev.com
Message has been deleted

Rick Harding

unread,
Jul 28, 2009, 1:33:54 PM7/28/09
to mich...@googlegroups.com
On Tue, Jul 28, 2009 at 1:31 PM, Zenom<stre...@gmail.com> wrote:
>
> I believe the following is what you are looking for.
>
> paster serve --reload
>
> Werkzeug is what I use most of the time, but you could look at the
> pylons docs if you want, it might help you out a bunch too.
>

That's the command I'm trying to get to work, but the issue I'm having
is the proper PasteDeploy config .ini file with the correct
[app:main]
use=xxxx

param to just call a method as the wsgi application entry point. When
using the wsgi.simple_server you can specify the method, but I don't
see how to get this with the 'paster serve' command.

Rick

Zenom

unread,
Jul 28, 2009, 1:35:06 PM7/28/09
to Michigan Python Users Group
Removed my other post as I re-read yours saying you wanted --reload. I
never use paster by itself, so it wont help.

Pylons uses paster as a wsgi server so their docs might help for you
in that regard.

Otherwise there is also Werkzeug with a simple app tutorial and
CherryPy (not sure if it is still updated or not).

On Jul 28, 11:27 am, Rick Harding <deuce...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages