[web2py] Re: mongoengine.org: can this work with web2py?

2019-09-03 Thread Massimo Di Pierro
yes it would work but since you would not benefit from automatic web2py 
forms and grid, I'd recommend you use py4web instead. 

On Friday, 1 April 2011 21:39:50 UTC-7, Pystar wrote:
>
> I would like to know if anybody has used mongoengine, it looks like an 
> interesting project.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8094f1b5-0ae1-4fa2-98a4-574415f0b7ab%40googlegroups.com.


[web2py] latin characters

2019-09-03 Thread fiubarc
Hello, I have an issue when update a record with latin characters (ñ, á, é, 
í...)

db_codec='latin1'  is already set

For example, when read from db the record FERNANDO ÁLVAREZ is ok, but when 
update same data and then read it again, I get FERNANDO ÃLVAREZ 

Python 3.7 
Database MSSQL 2000
Web2py 2.18

Any ideas?
Thanks!

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c025d316-c61a-4d46-9d19-3e604e0031e0%40googlegroups.com.


Re: [web2py] Re: Question with saving the thumbnail name on linux disk

2019-09-03 Thread Dave S
 

On Saturday, August 31, 2019 at 6:54:21 PM UTC-7, Rahul wrote:
>
> To Add - 
>
> [Sat Aug 31 18:02:10.901023 2019] [wsgi:error] [pid 3810] [client 
>> 95.163.255.151:41074 
>> ]
>>  
>> WARNING:root:Unable to write to file 
>> /home/www-data/web2py/applications/artpic/languages/ru.py
>>
>
> What's trying to write to this file?
> [Rahul] This is not me. I am not trying to write anything to this file as 
> I dont use it - I donk know about it. I gave the write permissions to 
> language folder to resolve the issue. It got resolved and it is not showing 
> that error in the logs
>
>
That may be a web2py thing.  I see that some of my languages/*.py don't 
have the same date; most show 2015-12-26, but zh-cn is 2019-08-06.

(and a couple of them have the +x permission).
 

> I am not sure about the r artifact - I did not put anything like that. 
>
>
I suspect your logging tool, but keep an eye on it.

Aside from that, I'm missing whatever is wrong.  Let's know when you have 
the traceback from the exception.


Rahul
>
>
>
/dps
 

> On Sun, Sep 1, 2019 at 5:15 AM Dave S > 
> wrote:
>
>>
>>
>> On Saturday, August 31, 2019 at 6:40:26 AM UTC-7, Rahul wrote:
>>>
>>> Hi Dave,
>>> I finally found the issue where the magic was with default 
>>> folder path specified in db.py. I rectified it in code where-ever I had 
>>> defined for other upload types aswell and it works properly. Now the files 
>>> do get saved to the desired path.
>>>
>>
>> Yay!
>>
>>  
>>
>>> *but the THUMBNAIL file saving issue still persists on linux.* Again 
>>> this works properly in Windows.
>>> [...]
>>>
>>  
>>
>>> [Sat Aug 31 18:00:20.813518 2019] [wsgi:error] [pid 3806] [client 
>>> 42.108.232.228:38975] Cannot create thumbnail (un-recognized format) 
>>> for:  /home/www-data/web2py/applications/artpic/stati$
>>>
>>
>> Hmmm  
>>
>>>
>>> [Sat Aug 31 18:02:09.456898 2019] [wsgi:error] [pid 3810] [client 
>>> 95.163.255.151:41074] WARNING:root:Unable to write to file 
>>> /home/www-data/web2py/applications/artpic/languages/ru.py
>>> [Sat Aug 31 18:02:09.685699 2019] [wsgi:error] [pid 3810] [client 
>>> 95.163.255.151:41074] WARNING:root:Unable to write to file 
>>> /home/www-data/web2py/applications/artpic/languages/ru.py
>>> [Sat Aug 31 18:02:10.900764 2019] [wsgi:error] [pid 3810] [client 
>>> 95.163.255.151:41074] WARNING:root:Unable to write to file 
>>> /home/www-data/web2py/applications/artpic/languages/ru.py
>>> [Sat Aug 31 18:02:10.901023 2019] [wsgi:error] [pid 3810] [client 
>>> 95.163.255.151:41074 
>>> ]
>>>  
>>> WARNING:root:Unable to write to file 
>>> /home/www-data/web2py/applications/artpic/languages/ru.py
>>>
>>
>> What's trying to write to this file?
>>
>>  
>>
>>> [...] 
>>>
>> [Sat Aug 31 18:27:17.451565 2019] [wsgi:error] [pid 5696] [client 
>>> 42.108.232.228:34651] , referer: 
>>> http://artpic.in/upload-fotoz
>>> [Sat Aug 31 18:27:17.451647 2019] [wsgi:error] [pid 5696] [client 
>>> 42.108.232.228:34651] infile:  
>>> /home/www-data/web2py/applications/artpic/static/user_uploads/fotoz.upload_photo.b404a9b372$
>>> [Sat Aug 31 18:27:17.451668 2019] [wsgi:error] [pid 5696] [client 
>>> 42.108.232.228:34651] thumbnail_filename:  133.thumbnail.jpg, referer: 
>>> http://artpic.in/upload-fotoz
>>> [Sat Aug 31 18:27:17.451690 2019] [wsgi:error] [pid 5696] [client 
>>> 42.108.232.228:34651] thumbpath and outfile:  
>>> /home/www-data/web2py/applications/artpic/static/thumbs/133.thumbnail.jpg, 
>>> r$
>>> [Sat Aug 31 18:27:19.289744 2019] [wsgi:error] [pid 5696] [client 
>>> 42.108.232.228:34651] Cannot create thumbnail (un-recognized format) 
>>> for:  /home/www-data/web2py/applications/artpic/stati$
>>>
>>> *CODE - FOR THUMBNAIL*
>>> [...] 
>>>
>> except IOError:
>>> print "Cannot create thumbnail (un-recognized format) 
>>> for: ", infile
>>>
>>>
>>>  * Please suggest on how to get the thumbnail to save in debian box - 
>>> I'll try it again after removing the try and catch blocks and get*
>>>  
>>>
>> *raw ticket if any tomorrow*
>>>
>>
>> Your except is not printing the exception itself, and what it does print 
>> is misleading (un-recognized format for an IOError?) and the filename 
>> printed may not be the one with the IOError.   First check ... make sure 
>> the thumbs directory exists and is writable. Is the ', r' appended to the 
>> line just an artifact of your logging tool? (I see "referer: 
>> hsttp://artpic.ini/upload-fotoz" on some other lines).
>>
>> You're definitely getting closer!
>>
>> /dps
>>
>> -- 
>> 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 

[web2py] invalid view (default/index) error after uploading app to pythonanywhere

2019-09-03 Thread mostwanted
I've just uploaded a new web2py app into pythonanywhere, it opens properly 
in localhost but after uploading it into pythonanywhere it says *invalid 
view (default/index) *when i type in the address! I dont understand why, I 
dont know what i'm doing wrong! If anyone has an idea on how I could 
rectify this please assist.

Regards

Mostwanted

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d85b2dc2-c6b7-4b67-8f5d-05b874a80e39%40googlegroups.com.


Re: [web2py] Re: How to get rid if the /init/default/ in the URL?

2019-09-03 Thread Lovedie JC
Ok. I meant hide them.
Regards

On Tue, 3 Sep 2019, 10:06 Dave S  wrote:

>
>
> On Saturday, August 31, 2019 at 4:58:49 AM UTC-7, Maurice Waka wrote:
>>
>> Hi
>> This is a very good discussion.
>> I followed it and it worked for me.
>> However, I have multiple controllers with different views, How can I make
>> it (HIDE ALL CONTROLLER NAMES) for all pages.
>>
>
> Say what?  How do you distinguish between apps and pages if you are going
> to get take the controller names out of the URLs?  You can use routes.py to
> map everything to a default path, but then thats what you get .. the
> default path.
>
> You can abuse this to make myapp/default/showstuff look like
> ,myapp/index?showstuff, but then you just make index figure out what the
> real functions are.
>
> /dps
>
>
>
>
>> So far it only works for default/index
>> Kind regards
>> On Friday, November 3, 2017 at 2:31:00 PM UTC+3, Anthony wrote:
>>>
>>> On Thursday, November 2, 2017 at 9:47:35 PM UTC-4, Joe wrote:

 Yes, this is how the structure should look like, but it seems
 pythonanywhere doesn't allow me to setup the structure this way.

 If I try to use this path to install a new app:
 /home/username/web2py/applications


 I get this pythonanywhere error msg during the process:
 Enter the path for a new directory to contain the web2py code
 failed to remove ‘/home/my_user_name/web2py/applications’: Directory
 not empty

>>>
>>> What do you mean by "install a new app"? If you want to create a new
>>> app, you can either use the web2py admin interface, or you can just go to
>>> the Pythonanywhere "Files" tab in the dashboard, navigate to the
>>> /web2py/applications directory, and enter a new directory name where it
>>> says "Enter new directory name" (or you can just use a Bash console to
>>> create a folder).
>>>
>>> If none of that is working for you, either contact Pythonanywhere
>>> support or just create a new account.
>>>
>>> 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 web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/c21f4800-bedb-41c1-818d-29d9babb9d8c%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAcHJF_TNRTKtAE0%2BzZGRrkLwFqH6KSxQLhTVLA_uPeiRBzwEg%40mail.gmail.com.


[web2py] Re: mongoengine.org: can this work with web2py?

2019-09-03 Thread Michele Serra
HI, have you tried mongoengine in web2py?

Il giorno sabato 2 aprile 2011 06:39:50 UTC+2, Pystar ha scritto:
>
> I would like to know if anybody has used mongoengine, it looks like an 
> interesting project.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/113514ef-ccf0-41aa-b9b0-c26f5ed0b092%40googlegroups.com.


[web2py] Re: web3py -> py4web

2019-09-03 Thread mostwanted
Beautiful, can't wait for a complete project

Mostwanted

On Wednesday, July 24, 2019 at 7:40:27 AM UTC+2, Massimo Di Pierro wrote:
>
> OK. I know. I am not good with names. 
> But there are lots of requirements to be fulfilled.
> py4web.com was available and the pypi package was available.
> Here is running on google cloud:
> http://py4web.com/
>
> Ducking...
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e75f9518-ff1b-4146-a07c-0de5e093b279%40googlegroups.com.


[web2py] Re: How can I run a command once at launch?

2019-09-03 Thread Dave S
On Monday, September 2, 2019 at 8:23:57 AM UTC-7, Francis Windram wrote:
>
> Hi All,
>
> Seems like a simple question here but I am struggling with finding an 
> elegant solution.
>
> I have a scheduler running with one task that runs at around 2200 every 
> night, then queues the next run at 2200 the next day.
>

Why are you queuing the next run from the current run?   Why not queue once 
with infinite repeats at a period of 86400 seconds, or use the crontab-like 
queuing option?

One good reason for doing "chain queuing" was if you were using a resource 
that expires, but even that should be okay with the other options.

/dps
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/86a8a454-6ad7-49a5-af35-af2a79953aa5%40googlegroups.com.


[web2py] Re: Help understanding memory use and selects

2019-09-03 Thread Dave S


On Monday, September 2, 2019 at 12:44:18 PM UTC-7, Ian W. Scott wrote:
>
> I'm trying to lower the memory use of an app and have some general 
> questions about how memory is used in DAL selects:
>
>
>1. Am I right that the memory used while performing the select isn't 
>released right away, even if the select isn't assigned to a variable? 
>2. I'm aware of iterselect. Am I right that with iterselect the memory 
>used is just enough to store one row of data (instead of the whole 
> selected 
>set)?
>3. Does this mean that, generally, you want to perform as few separate 
>selects as possible, unless you can use iterselect?
>4. Selects seem to occupy a significant amount of memory, even when 
>the result set is only one row. Is the memory use for the select 
> determined 
>by the table size or the result size?
>
> Here's an example of the kind of situation I'm working with. I'm using a 
> list comprehension to loop through a list, performing a select in each loop:
>
> p_here = [p for p in cpaths if loc_id in db.steps[int(p['steps'][0])].
> locations]
>
>
> When I run a memory profiler, this line results in over 1MB of memory 
> being occupied, and that memory isn't released for at least several 
> minutes. The table "steps" has about 3000 rows, so it's not enormous. The 
> result for each select is a single row and doesn't include a huge amount of 
> data (a few strings, ints, etc.). The "cpaths" list might have 50 or so 
> items. So is the memory issue emerging because (a) the memory use for each 
> select is determined by the table size, and (b) memory is being occupied 
> (and not released) separately for each iteration of the loop? Is there a 
> way to rewrite this so that it uses less memory?
>

Naive db abuser responding:

You've already mentioned iterselect(),. but I'll put the link here for 
other readers:
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Using-an-iterator-based-select-for-lower-memory-use>

And the general  advice oft repeated hereabouts is to not do in Python what 
you can do in the DB, so it may be worth trying to recast the comprehension 
into elements of the select.

Also, this may depend on the combination of database and driver.  In my 
case, pg8000 was appearenetly costing me memory growth with the scheduler.  
When I finally figured out installing psycopg2 where web2py could find it, 
this issue diminished.

Good luck!

/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8d10067c-389c-424a-9505-19040eb8af53%40googlegroups.com.


[web2py] Re: How can I run a command once at launch?

2019-09-03 Thread Dave S


On Monday, September 2, 2019 at 8:23:57 AM UTC-7, Francis Windram wrote:
>
> Hi All,
>
> Seems like a simple question here but I am struggling with finding an 
> elegant solution.
>
> I have a scheduler running with one task that runs at around 2200 every 
> night, then queues the next run at 2200 the next day. However I am at a 
> loss on how to trigger off the first run (aside from a one-off script to 
> schedule the first run)
>
> Adding a piece of code in the model which checks whether an eod_run job is 
> in the scheduler table and schedules one if not seems like it adds a lot of 
> overhead, considering the models are run very regularly.
> Assuming that all things work properly, once the scheduler runs one job, 
> it should just queue the next one, but I'm not sure if that persists over 
> server shutdowns.
>
> Do you have any suggestions? I could drop down and use a cron job on the 
> server itself, or using the cron functionality in web2py, but that feels 
> like stepping backwards when we have a perfectly functional scheduler 
> already enabled.
>
> Thanks!
>


Have a controller function that runs once (basically a script) /  You can 
put this in your startup files if you want.  (My server is restarted by 
hand more often than by reboot, so I haven't bothered with the startup 
part; I'm still editing modules used by the scheduler fairly often).

See
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Start-the-scheduler-as-a-Linux-service-upstart->
and
'

/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8b7d1915-7574-4197-befd-6b9a1282f8a5%40googlegroups.com.


[web2py] Re: Reequiring login for a static file

2019-09-03 Thread Dave S


On Sunday, September 1, 2019 at 7:28:05 PM UTC-7, Massimo Di Pierro wrote:
>
> By definition static files have no authorization because we recommend they 
> being served directly by the web server bypassing web2py entirely.
>
> You can put then in a myfiles subfolder of the app and create your own 
> action:
>
> @auth.requires_login()
> def static():
>  import contenttype
>  filename = os.path.join(request.folder, 'myfiles', 
> '/'.join(rqeuest.args))
>  response.headers['Content-Type'] = contenttype.contenttype(filename)
>  if not user_permissions(auth, filename): # <-- you implement this
>   raise HTTP(401)
>  if not os.path.exists(filename):
>   raise HTTP(404) 
>  with open(filename) as fp:
>   return fp.read()
>
>
That is essentially what I ended up doing (with the minor change of using a 
stream),  I haven't gotten around to hotwiring the static files into the 
frontend (missed that comment in "deployment"), but I did think about it 
and using the frontend to handle that authentication, but decided not to 
wait for my learning curve.

Thanks.

/dps

 

> On Thursday, 29 August 2019 01:27:17 UTC-7, Dave S wrote:
>>
>> I have a file that I want authorized users to be able to download, but 
>> I'm not sure I want it in the uploads directory (so that user/download can 
>> find it).  I'm thinking about putting it in static, but I realize that 
>> doesn't default to secure (well, many static files are needed by the login 
>> page, for example).
>>
>> Is there an easy way, say with routes.py, to require login for a specific 
>> static file, or is the check_access() technique in the book and in > https://groups.google.com/d/msg/web2py/3rEQJ9SfIWo/8SEH-bPxAAAJ> the way 
>> to do this (using nginx with a very specific pattern)?
>>
>> /dps
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3c2677fb-6ef1-4bc8-b4c3-d3a5b30719c9%40googlegroups.com.


[web2py] Re: How to get rid if the /init/default/ in the URL?

2019-09-03 Thread Dave S


On Saturday, August 31, 2019 at 4:58:49 AM UTC-7, Maurice Waka wrote:
>
> Hi
> This is a very good discussion.
> I followed it and it worked for me.
> However, I have multiple controllers with different views, How can I make 
> it (HIDE ALL CONTROLLER NAMES) for all pages.
>

Say what?  How do you distinguish between apps and pages if you are going 
to get take the controller names out of the URLs?  You can use routes.py to 
map everything to a default path, but then thats what you get .. the 
default path.

You can abuse this to make myapp/default/showstuff look like 
,myapp/index?showstuff, but then you just make index figure out what the 
real functions are.

/dps


 

> So far it only works for default/index
> Kind regards
> On Friday, November 3, 2017 at 2:31:00 PM UTC+3, Anthony wrote:
>>
>> On Thursday, November 2, 2017 at 9:47:35 PM UTC-4, Joe wrote:
>>>
>>> Yes, this is how the structure should look like, but it seems 
>>> pythonanywhere doesn't allow me to setup the structure this way.
>>>
>>> If I try to use this path to install a new app: 
>>> /home/username/web2py/applications
>>>
>>>
>>> I get this pythonanywhere error msg during the process:
>>> Enter the path for a new directory to contain the web2py code
>>> failed to remove ‘/home/my_user_name/web2py/applications’: Directory not 
>>> empty
>>>
>>
>> What do you mean by "install a new app"? If you want to create a new app, 
>> you can either use the web2py admin interface, or you can just go to the 
>> Pythonanywhere "Files" tab in the dashboard, navigate to the 
>> /web2py/applications directory, and enter a new directory name where it 
>> says "Enter new directory name" (or you can just use a Bash console to 
>> create a folder).
>>
>> If none of that is working for you, either contact Pythonanywhere support 
>> or just create a new account.
>>
>> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c21f4800-bedb-41c1-818d-29d9babb9d8c%40googlegroups.com.


[web2py] Re: configuring an app on pythonanywhere

2019-09-03 Thread Dave S


On Friday, August 30, 2019 at 8:28:51 AM UTC-7, Maurice Waka wrote:
>
> After doing all the procedures for a new app e.g. www.myapp.com, 
> completing registration on godaddy.com, upgrading on pythonanywhere etc. 
> The app in web2py is also 'myapp'(same as domain name)
>
> I went to the web2py folder and changed/ added in the routes.py this:
>
> routers = dict(
> BASE  = dict(default_application='rivelar'),
> rivelar = dict(languages=['en', 'it', 'jp'], default_language='en'),
> )
>   
>

> I reloaded the app through the web tab...etc
>
> but when trying to open the app as usual www.myapp.com, I get 
> www.myapp.com/welcome/default/index.
>
> where is this line stored:  'welcome/default/index'
>
> How can I change or remove it  to get www.myapp.com/myapp/default/index 
> or simply www.myapp.com/index
>
> Regards
>


It's in main.py, but routes.py is the correct way to override it.  Works 
fine for me on a AWS-Linux instance
just specifying

BASE=dict(
default_application='mydefaultapp',
root_static = ['favicon.ico', 'robots.txt'],
),
 
You need to reload web2py, though, not just the app.  But doesn't the admin 
page have a button for "reload routes"?  Yes, at the top, to the right of 
"Change admin password".

/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/60f040c9-d6b3-4e2e-ba5f-cd3565c0a0d2%40googlegroups.com.