Re: Flask OAuth Problem
- From:
- Thomas Bilk
- Date:
- 2010-07-24 @ 14:47
Hi again.
So I finally got it running. Seems like pip did not install the latest
version of Flask-OAuth.
Now I have another problem: How do I get a Flask app running on
http://server.xx/ with an empty path in the url on a lighttpd? I followed
the instructions in the Flask docs an in the Werkzeug docs but I still have
problems.
If I set the lighttpd config to this: fastcgi.server = ("/" => ... I get the
app's index page served well but static media and every other url does not
work properly. If I set the config to fastcgi.server = ("" => ... some urls
with tailing slash do not work anymore.
Kind regards,
Thomas.
On Thu, Jul 22, 2010 at 12:45 AM, Thomas Bilk <thomasbilk@gmail.com> wrote:
> Hi.
>
> I wanted to write a Flask OAuth app that works with twitter. I tried to
> follow the examples in the Flask-OAuth docs (
> http://packages.python.org/Flask-OAuth/) but could not get the app
> running, neither localhost nor on the server with proper domain.
>
> Than I tried to run the example app from the github repository but that app
> also does not work for me. I could sign in with Twitter and load the list,
> but I cannot send tweets, as I always get an error that my request could not
> get authenticated.
>
> Can anyone here run the Flask-OAuth example app?
>
> Regards,
> Thomas.
>
Re: [flask] Re: Flask OAuth Problem
- From:
- Armin Ronacher
- Date:
- 2010-07-24 @ 15:25
Hi,
On 7/24/10 3:47 PM, Thomas Bilk wrote:
> Now I have another problem: How do I get a Flask app running on
> http://server.xx/ with an empty path in the url on a lighttpd?
lighttpd has all kinds of bugs with WSGI applications depending on the
adapter and configuration you are using. You will need to write
yourself a WSGI middleware that works around these bugs by settings
SCRIPT_NAME, PATH_INFO and co from the values of the WSGI environment
that look the best.
Do some Googling for lighttpd fixing middlwares. Werkzeug ships one for
some of the common problems, so maybe that works for you.
Regards,
Armin