Vinny, Thanks for your answer. I have looked into the suggestion but can 
find difference with my code. 

I get the error only when i upload a new code to the app engine. If i 
restarted it manually it works. 

Error 500: 'uri_for' is undefined


any ideas? Thanks 




On Tuesday, January 14, 2014 6:14:17 AM UTC+2, Vinny P wrote:
>
> On Sun, Jan 12, 2014 at 4:30 AM, Ronen Azachi <aza...@gmail.com<javascript:>
> > wrote:
>
>> having same problem. I am using the boilerplate "
>> https://github.com/coto/gae-boilerplate";
>> did you resolve this issue?
>>
>> On Monday, July 16, 2012 10:34:35 AM UTC+3, Thomas Marban wrote:
>>>
>>> Ever since including webapp2.uri_for in my webapp2_extras.jinja2 config 
>>> via
>>>
>>>         'globals': { 'uri_for' : webapp2.uri_for   }, 
>>>
>>>  I'm getting an undefined error every time I change a python file and 
>>> load the app for the first time. It won't come up on subsequent requests. 
>>> Also tried to inject it into globals via a Jinja2 factory but same result. 
>>> Any hints?
>>>
>>> UndefinedError: 'uri_for' is undefined
>>>
>>>
>
> The fix is to insert *uri_for* as a global in some manner. There's many 
> ways to do this, but you can try the strategy outlined here: 
> http://stackoverflow.com/questions/7081250/webapp2-jinja2-how-can-i-get-uri-for-working-in-jinja2-views
>
>  
>  
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to