Hi Serega,
I'am not really sure about, but __init__.py defines a package. In your case you
have a package called controller. This package contains index(.py) and
portfolio(.py), which are modules. So, to make your app work, try this:
> here is main.py code:
> #
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
# Instruction which import modules index and portfolio
> from controller import *
>
>
> # MAIN CONFIGURATION #
> # Register the URL with the responsible classes
# This should do the trick
application = webapp.WSGIApplication([ ('/', index.IndexPage), ('/
portfolio', portfolio.PortfolioPage) ], debug=True)
It may also be possible to write the import statements for IndexPage and
PortfolioPage classes into the __init__.py file.
Hope this helps,
acm.
signature.asc
Description: OpenPGP digital signature