Try replacing:

- url: /import/.*
  script: homepage.py

with:

- url: /import/.*
  script: import/homepage.py


On Dec 18, 9:21 am, "[email protected]" <[email protected]> wrote:
> I am navigating to / that uses /homepage/homepage.py it works fine
> When I am navigating to /import/ that uses /import/homepage.py I get
> an error why?
>
> app.yaml
> application: wefi
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /css
>   static_dir: css
>
> - url: /js
>   static_dir: js
>
> - url: /import/.*
>   script: homepage.py
>
> - url: /
>   script: homepage/homepage.py
>
> the error that I dont understand
>
> <class 'google.appengine.tools.dev_appserver.CouldNotFindModuleError'>
> Python 2.6: C:\Python26\python.exe
> Wed Dec 17 22:20:22 2008
>
> A problem occurred in a Python script. Here is the sequence of
> function calls leading up to the error, in the order they occurred.
>  c:\program Files\google\google_appengine\google\appengine\tools
> \dev_appserver.py in _HandleRequest
> (self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler
> instance at 0x013EEC38>)
>  2441                               infile,
>  2442                               outfile,
>  2443                               base_env_dict=env_dict)
>  2444         finally:
>  2445           self.module_manager.UpdateModuleFileModificationTimes
> ()
> base_env_dict undefined, env_dict = {'APPLICATION_ID': 'wefi',
> 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1',
> 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
> '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
> 1.0'}
>  c:\program Files\google\google_appengine\google\appengine\tools
> \dev_appserver.py in Dispatch
> (self=<google.appengine.tools.dev_appserver.MatcherDispatcher object
> at 0x0156AD10>, relative_url='/import/', path=None,
> headers=<mimetools.Message instance at 0x013EEFD0>,
> infile=<cStringIO.StringI object at 0x014E36B0>,
> outfile=<cStringIO.StringO object at 0x0156AC40>, base_env_dict=
> {'APPLICATION_ID': 'wefi', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR':
> '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
> 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0',
> 'SERVER_SOFTWARE': 'Development/1.0'})
>   351                             infile,
>   352                             outfile,
>   353                             base_env_dict=base_env_dict)
>   354
>   355       return
> base_env_dict = {'APPLICATION_ID': 'wefi', 'CURRENT_VERSION_ID':
> '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
> 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL':
> 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}
>  c:\program Files\google\google_appengine\google\appengine\tools
> \dev_appserver.py in Dispatch
> (self=<google.appengine.tools.dev_appserver.CGIDispatcher object at
> 0x013E9670>, relative_url='/import/', path='homepage.py',
> headers=<mimetools.Message instance at 0x013EEFD0>,
> infile=<cStringIO.StringI object at 0x014E36B0>,
> outfile=<cStringIO.StringO object at 0x0156AC40>, base_env_dict=
> {'APPLICATION_ID': 'wefi', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR':
> '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
> 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0',
> 'SERVER_SOFTWARE': 'Development/1.0'})
>  1867                      infile,
>  1868                      outfile,
>  1869                      self._module_dict)
>  1870       handler.AddDebuggingConsole(relative_url, env, outfile)
>  1871     finally:
> self = <google.appengine.tools.dev_appserver.CGIDispatcher object at
> 0x013E9670>, self._module_dict = {'Cookie': <module 'Cookie' from 'C:
> \Python26\lib\Cookie.pyc'>, 'StringIO': <module 'StringIO' from 'C:
> \Python26\lib\StringIO.pyc'>, 'UserDict': <module 'UserDict' from 'C:
> \Python26\lib\UserDict.py'>, '__future__': <module '__future__' from
> 'C:\Python26\lib\__future__.pyc'>, '__main__': <module
> 'homepage.homepage' from 'C:\sites\wefi\financy\homepage/
> homepage.py'>, '_abcoll': <module '_abcoll' from 'C:\Python26\lib
> \_abcoll.py'>, '_collections': <module '_collections' (built-in)>,
> '_functools': <module '_functools' (built-in)>, '_hashlib': <module
> '_hashlib' from 'C:\Python26\DLLs\_hashlib.pyd'>, '_locale': <module
> '_locale' (built-in)>, ...}
>  c:\program Files\google\google_appengine\google\appengine\tools
> \dev_appserver.py in ExecuteCGI(root_path=r'C:\sites\wefi\financy',
> handler_path='homepage.py', cgi_path=r'C:\sites\wefi\financy
> \homepage.py', env={'APPLICATION_ID': 'wefi', 'AUTH_DOMAIN':
> 'gmail.com', 'C
>
> Thanks Avi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
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