On Nov 23, 11:21 am, David <digitalcry...@gmail.com> wrote:
> Layouts should depend on the domain.
>
> But I don't want to have 50+ installations per server that need to be
> update manually when I make changes to the code or bring enhancements.
>
> They don't need appadmin. I am writing a control panel for them to
> manage users.
>
> Would it not be possible to share a single web2py installation for
> multiple vhosts so I only need to update one directory on each server?
Yes you can. You never need more than one web2py installation.
- You can have multiple apps under one web2py installation and map
them ti different vhosts (in this case apache does the mapping)
- You can have one app with multiple layouts depending on the vhosts
but in this case (in this case web2py does the mapping)
- You can have one layout.html and different CSS files depending on
the vhosts
The best way really depends on what the differences are and who is
allowed to edit these differences. Are they set once for all? Do you
need to add more? Are the differences just in color and images or are
they differences in the actual HTML?
have you looked into http://web2py.com/layouts ?
> On Nov 23, 10:15 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > You should consider different approached depending on whether the
> > layout depends on the domain or the user. If it depends on the domain
> > and it is fixed for domain, I suggest different web2py apps with
> > different set of views that talk to the same db. Usevirtualhosts to
> > map domain into app. If the are per user, I would make the CSS dynamic
> > and retrieve it from the a database based on user preferences.
>
> > On Nov 2, 2:28 pm, David Henry <digitalcry...@gmail.com> wrote:
>
> > > Hi Thadeus,
>
> > > Did you happen to have the information on how to set this up?
>
> > > I wanted one web2py with multiple applications that serve unique views/
> > > html/css to users based on the domain used to access the site so users
> > > can customize the look and feel to their tastes.
>
> > > Thanks,
> > > David
>
> > > On Nov 1, 2009, at 7:41 PM, Thadeus Burgess wrote:
>
> > > > I use virtualhosts on a per domain basis. You are wanting the same
> > > > app, with the same data, but different layouts depending on domain,
> > > > or do you want two completely separate apps per domain?
>
> > > > -Thadeus
>
> > > > On Sun, Nov 1, 2009 at 7:12 PM, David Henry
> > > > <digitalcry...@gmail.com> wrote:
> > > > uld I need symlinks to the virtualhost directory as we
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---