the static files and the source code are  not stored on the same  
server of Google's.
so you can not do things as you said,
if you really want to do this,try use the urllib.
在 2008-10-8,上午8:48, manuelaraoz 写道:

>
> Hey!
> I'm really confused!
>
> I have this line of code:
>
> fin = open("static/text/data.txt",'r')
>
>
> when running with dev_appserver everything is ok
> but when I deploy the application, it fails, stating:
>
> Traceback (most recent call last):
>  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 499, in __call__
>    handler.get(*groups)
>  File "/base/data/home/apps/7cerebros/4.6/controller.py", line 213,
> in get
>    fin = open("static/text/words.txt",'r')
> IOError: [Errno 2] No such file or directory: 'static/text/words.txt'
>
>
> my app.yaml has this line:
>
> - url: /text
>  static_dir: static/text
>
> any idea of why this difference?
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to