Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Bottle.py + uWSGI
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gianluca  
View profile  
 More options Nov 24 2010, 6:21 am
From: Gianluca <g...@brindi.si>
Date: Wed, 24 Nov 2010 03:21:39 -0800 (PST)
Local: Wed, Nov 24 2010 6:21 am
Subject: Bottle.py + uWSGI
Hello,
I am trying Bottle.py for the first time and I've reached the
deployment phase.
I would like Bottle to play nice with uWSGI but I still have not
figured out how to configure everything properly.

Can you point me to the right direction?

Thank you!
G


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
manatlan@gmail.com  
View profile  
 More options Nov 24 2010, 4:29 pm
From: "manat...@gmail.com" <manat...@gmail.com>
Date: Wed, 24 Nov 2010 22:29:33 +0100
Local: Wed, Nov 24 2010 4:29 pm
Subject: Re: [bottlepy] Bottle.py + uWSGI

I did'nt know uwsgi til your post (I've heard of it, but never tested it)
uwsgi is not a http server ...  but since 0.9.6 it embeds one ....

your entry point in your module should be named "application".
so you can set as it :

application = bottle.app()

and just run something like that :

uwsgi --http 127.0.0.1:8080 -w myapp -p 4 -M -t 20 --limit-as 128 -m -T

(myapp is your module named myapp.py in the current dir/path)

but you should use uwsgi with a real server (nginx, cherokee, apache,
lighttpd, ...).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gianluca  
View profile  
 More options Nov 24 2010, 5:56 pm
From: Gianluca <g...@brindi.si>
Date: Wed, 24 Nov 2010 14:56:25 -0800 (PST)
Local: Wed, Nov 24 2010 5:56 pm
Subject: Re: Bottle.py + uWSGI
Yes, I have a server with nginx + uwsgi installed.

But I am not sure if i got it: i just need to substitute the run()
statement with
application = bottle.app()
without any other "adapter" for the wsgi?
No need to use the default_app() like explained in the Todo tutorial?

I am sorry for my noobishness, it's the first time ever I deploy a
python webapp so I am a little confused!

Thank you for the help,
G

On Nov 24, 10:29 pm, "manat...@gmail.com" <manat...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Hellkamp  
View profile  
 More options Nov 24 2010, 6:12 pm
From: Marcel Hellkamp <m...@gsites.de>
Date: Thu, 25 Nov 2010 00:12:59 +0100
Local: Wed, Nov 24 2010 6:12 pm
Subject: Re: [bottlepy] Re: Bottle.py + uWSGI
Am 24.11.2010 23:56, schrieb Gianluca:

> But I am not sure if i got it: i just need to substitute the run()
> statement with
> application = bottle.app()

Yes. Thats all :)

> without any other "adapter" for the wsgi?

uWSGI works similar to mod_wsgi for apache: You don't start the server
from within your python program, but instead let an external server load
your application.

> No need to use the default_app() like explained in the Todo tutorial?

bottle.app() is an alias for bottle.default_app(). Both return a WSGI
application object.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »