Youngfe wrote:
> I have a file(xPhotoHandler.py) with following codes inside:
>
> from google.appengine.ext import webapp
> from google.appengine.api import users
> from xphoto import xPhoto
> class xPhotoHandler(webapp.RequestHandler):
> def get(self):
> pass
>
> I have defined xPhoto class in file(xphoto.py) in the my app root
> folder
>
> but when I call from web there's an error show as below:
>
> xphoto undefined, xPhoto undefined
>
> I don't know why? Can anyone help it out? Thanks!
You have to add from xxx import at the beginning of xPhotoHandler.py
file. I guess it should look something like:
from xphoto import xPhoto
hope it will help.
Regards Remis B
--~--~---------~--~----~------------~-------~--~----~
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
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---