I am developing a website with many features required my client, using
web2py. So, I'd also like to see the best practice for modular site
development.

In my development, I made two applications for a website, one is for
front, and the other is for admin site. And I think it worked well,
though obviously it required much effort for developing multi-
application. The choice would depend on the degree of loose coupling
required in each system. Anyway, components and plugins are great
ideas, which I found helpful for writing modular codes in web
programming.

Besides, it would be important to "minimize the code in
models" (http://web2py.com/book/default/chapter/11) for single large
application. Not only because of performance issue, but also because
of clean global scope.

In this regard, current published plugins are largely written in
models directory, while I found few plugins written primarily in
modules directory. I think writing in models is much easier, but would
have some deficits for developping a modular large application.
However it would also depend on ones needs. Personally, I follow the
coding style as in gluon.tools.Auth, Crud, and Mail, with writing
modules directory.

Kind regards,
Kenji

On 1月28日, 午後3:59, Kenneth Lundström <kenneth.t.lundst...@gmail.com>
wrote:
> My gut tells one application, having applications share layout, database
> and all is not piece of cake.
>
> But I guess it depends on the application, but I would make it as one
> application.
>
> Kenneth
>
>
>
>
>
>
>
> > Dear web2py users,
>
> > I am developing a website that will have many features, some of which
> > are not yet specified by my client. Therefore and for other reasons, I
> > would like to develop it in a modular fashion.
>
> > Should I base my website on a web2py site with a single application,
> > with modularity achieved using Components and Plugins?
>
> > Would it be better and/or easier to have a multi-application web2py
> > site with a masterapp and CAS, along with shared layout, database,
> > session, etc.?
>
> > Do any of you have any other suggestions for web2py site development
> > modularity best practices?
>
> > Thanks for your help in advance.
>
> > Love and peace,
>
> > Joe

Reply via email to