Nevermind, I'm an idiot and posted too soon.

i changed "from pages import index" to "import pages" and the url
handler is 'pages.index.index' and it works fine.

On Feb 17, 3:24 pm, p_W <[email protected]> wrote:
> I am trying to organize my app by including all the classes that
> handle requests in a separate directory, like this:
>
> [code]
>
> in code.py:
>
> from pages import index
>
> urls = (
>     '/', 'index'
> )
>
> app = web.application(urls, globals())
>
> if __name__ == "__main__":
>     app.run()
>
> [/code]
>
> [code]
>
> in pages/index.py
>
> class index:
>     def GET(self):
>         return "Hello"
>
> [/code]
>
> when i start the dev server and request '/', i get a '405 method not
> allowed' error, and the page says 'None'
>
> Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to