Increase uwsgi_buffer_size to run django-openid-auth on dotCloud

To enable Django OpenID authentication, I choose django-openid-auth. But when I deploy to dotcloud, there’s a ‘404’ as welcome message :p

My guess is the google openid server requests back long-length headers, which exceeds the default uwsgi buffer size (4096).There is a related issue about it. Although I didn’t find any “block size” in logs, but it seems worth a try. So I follow the documentation, modify my dotcloud.yml as:

and destroy the running server and deploy a new one (just as the document told me). Now the django service runs with OpenID authentication. 🙂

Bonus: to enable openid-auth for Django, add the following lines to:
urls.py

settings.py:

Date
Categories
Tags
Permalink
Status

Published:March 7, 2012

python

Bookmark the permalink

Post a comment or leave a trackback: Trackback URL


Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*
*