All in default.py is quick and easy during the early stages of
development but I find it gets messy later on.  It's not too bad
moving controllers from default.py into their own modules.  You just
have to remember to move your view files and change your redirect()
calls as needed to accommodate the new URL mapping.

That being said, my intent from here on out is to start with each
controller in own file.

Cheers,
Mike

On Jul 16, 4:33 pm, Rob <[email protected]> wrote:
> Hi,
>
> I'm have a simple question.  I'm developing a toy website that is like
> a shopping list.  It has 'Items', 'Categories', 'Recipes', etc...
>
> Would you put everything in the default controller (default.py), or
> create multiple controllers - one for each thing (item.py,
> category.py, etc).
>
> What's the web2py convention?
>
> Thanks!

Reply via email to