Jorge, thanks for your help!

The reason I asked question 2 is that I would not expect to receive
that "200" on line 17 after seeing that ERROR on line 15. It looks
like the interpreter DID find my code...and that's the point. Why
paper over an ERROR with a WARNING? I'd been running the SDK as a
Windows service (no log) for several days before I happened to be
debugging another issue and ran across this one. Guess I need to
figure out how to catch that log. Anybody know how?

- Doc






On Sep 1, 7:38 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 1, 2008 at 3:50 PM, DocDay <[EMAIL PROTECTED]> wrote:
>
> > When a handler is in a subfolder of root, the SDK wants
> > an __init__.py file there as well. See line 16, below.
>
> http://docs.python.org/tut/node8.html
>
>
>
> > Questions:
>
> >  1) Is this a Python or a GAE requirement?
> >    (I'm new to Python.)
>
> python
>
>
>
> >  2) Why does this error morph into a warning?
> >     See lines 15-17, below.
>
> because you fail to tell the interpreter how to find your code.
>
>
>
> >  3) What does __init__.py do?
>
> nothing really, it's just a convention the above link will explain. Normally
> it's either empty or people add package initialization code.
>
>
>
>
>
> > -DocDay
>
> >  1 #------------------------------------------------------­--#
> >  2  app.yaml:
> >  3 #---------------------------------------------------------#
> >  4 application: gae-report-20080901-02
> >  5 version: 0
> >  6 runtime: python
> >  7 api_version: 1
> >  8 handlers:
> >  9 - url: /.*
> > 10   script: dynamic/index.py
>
> > 11 #------------------------------------------------------­--#
> > 12  dev_appserver.py log: (release: "1.1.2"  timestamp: 1219264385)
> > 13 #------------------------------------------------------­--#
>
> > 14 DEBUG 2008-09-01 21:20:03,671 dev_appserver.py]
> >         Matched "/" to CGI dispatcher with path dynamic/index.py
>
> > 15 ERROR 2008-09-01 21:20:03,733 dev_appserver.py]
> >         Encountered error loading module "dynamic.index":
> >         <type 'exceptions.ImportError'>:
> >         Could not find module dynamic.index
>
> > 16 WARNING 2008-09-01 21:20:03,733 dev_appserver.py]
> >           Missing package initialization files:
> >           D:\Documents and Settings\Richard\My Documents\
> >           My Websites\docday-gae-report-20080901-02\Here\
> >           public\dynamic\__init__.py
>
> > 17 INFO  2008-09-01 21:20:05,155 dev_appserver.py]
> >         "GET / HTTP/1.1" 200 -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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