On Friday, July 14, 2017 at 1:52:05 PM UTC-4, Anthony wrote: > > See http://web2py.com/books/default/chapter/29/04/the-core#Dispatching > and > http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system > . > > If no app is specified, web2py looks for an app called "init", and if not > found, it then looks for one called "welcome". But there is no need for you > to simply customize the welcome app. Name the app whatever you like and use > the parameter-based router system to specify a default application -- that > application name will then be removed from all URLs. >
Referring to what Leonel Câmara wrote above, I believe I have to copy the routes.example.py from the default app into the top level web2py folder before this will work. Due to the fact that I had not put a routes.py file in the top level folder, there must be a part of web2py that says if no app is specified, then look for init app followed by welcome app. > > >> Since web2py can serve several different applications from one instance >> or installation of web2py is there a way to have a menu of all the >> different applications? >> For example, myapp1, myapp2, etc. would be displayed somehow at the top >> of each page in each app. How would that be done? >> > > There is nothing built-in for that -- you would simply have to code some > kind of helper function to generate the menu and include it in the layout > of each app. > > Lastly, I was looking at the different directories in each application and >> was unsure what the difference is between the Modules folder and Plugins? >> > > Modules are just a place you can put standard Python modules that are > specific to your app. Plugins are described here: > http://web2py.com/books/default/chapter/29/12/components-and-plugins#Plugins > . > Do I use pip install or the conda command? I don't think so because that does not (easily) give us control over where the module is placed. So, I assume I download a module from pypi and put it there. > > >> Also, there are appliances which I like but I ended up discovering more >> than one appliance that I had found with features for a single application. >> So, I was wondering if it was possible to have one app that included for >> example the Semantic Web appliance with an e-commerce app. >> Is there a way to do that, to merge two apps into one? >> > > There is no simple or automated way. You would simply have to combine the > files/code of each app into a single app, making any necessary adjustments. > Ok, thanks for the help, Bruce > > Anthony > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

