Thanks! That was exaclty what i was looking for! but what if i have 
multiple web2py websites? For instance, one app will be on jbtus.com and 
Another app will have a domain of jbtus2.com


Should i just copy the whole web2py program and make two different 
routes.py? 

On Tuesday, January 3, 2017 at 1:51:04 AM UTC-6, Dave S wrote:
>
>
>
> On Monday, January 2, 2017 at 1:03:42 PM UTC-8, David Shavers wrote:
>>
>> I've read both links that you guys have sent and now I know what code I 
>> need to put into the routes.py file, but It's still not clear to me where I 
>> should place it. By "in the /web2py folder," do you mean in the folder that 
>> contains the downloaded web2py application?
>>
>>
>> For instance, on mac.. mac/user/downloads/web2py/routes.py?
>>
>>
> Quick answer:  yes
>
> Better answer:  it goes in the directory where web2py.py lives; this is 
> also the parent directory to the applications directory.  If you happen to 
> have installed web2py under the ~/downloads directory, then that is where 
> it goes.  Web2py does not need its directory to be in ~/downloads, but it's 
> okay to have it there (for a development environment; production 
> environments may require a different organizing scheme).
>
> /dps
>
>  
>
>> On Mon, Jan 2, 2017 at 1:44 PM, Anthony <abas...@gmail.com> wrote:
>>
>>> Use routes.py and specify your app as the default app (you can also 
>>> remove the welcome app if you don't want it to be shown). The routes.py 
>>> file goes in the /web2py folder, and there is no need to name your app 
>>> "init" in this case. See 
>>> http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system
>>> .
>>>
>>> Anthony
>>>
>>>
>>> On Monday, January 2, 2017 at 2:48:12 AM UTC-5, David Shavers wrote:
>>>>
>>>> Hi, I have an app and I had to name it 'init' because the 'welcome' app 
>>>> kept coming up first. How can I make it so that a different app (e.g. 
>>>> 'jbtus') comes before 'init?'
>>>
>>> -- 
>>> 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 a topic in the 
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/web2py/gyyLcQzs24g/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to