what python version and os version do you have?

On Tuesday, 15 May 2012 22:20:00 UTC-5, JungHyun Kim wrote:
>
> Hi. 
>
> I got a error "AttributeError: 'thread._local' object has no attribute 
> 'request'" when trying to run web2py with wsgi.
>
> The application was "welcome" which is sample application of web2py.
>
> in db.py
>
> from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
> auth = Auth(db, hmac_key=Auth.get_or_create_key())
>
>
>
> and in gluon/tools.py
>
> @staticmethod
>     def get_or_create_key(filename=None):
>         request = current.request
>
>
>
> Variablesglobal current<thread._local object>requestundefinedcurrent.
> requestundefined
>
> I have two questions about this.
>
> 1. Does global current variable mean thread._local ?
>
> 2. If then, why thread._local doesn't have request attribute? Did I set 
> wsgi configuration wrong?
>
>
> Thank you very much.
>
>
>

Reply via email to