Missing gluon.settings on GAE

4 views
Skip to first unread message

Gary

unread,
Apr 14, 2009, 4:42:39 PM4/14/09
to web2py Web Framework
I updated to 1.62 this morning and made two changes in the views.
When I uploaded to GAE, the application failed with a "600 server
error" and the log shows:

<type 'exceptions.ImportError'>: No module named settings
Traceback (most recent call last):
File "/base/data/home/apps/utilityplant/1.332789504321242905/
gaehandler.py", line 16, in <module>
from gluon.settings import settings

I cannot find a setting.py file in the gluon directory and I'm not
sure if I should. The mods worked fine on the web2py server. For the
record, I added the following call to yahoo maps in the layout.html
file which, I suppose could be the problem.

<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?
v=3.8&appid=xxxxxxxxxxxxxxxxxxxxxxx">
</script>
<style type="text/css">
#map{
height: 35%;
width: 25%;
}
</style>

I'm just not sure if the GAE error relates to the 1.62 upgrade or my
change. Any help would be greatly appreciated.

Thanks.

mdipierro

unread,
Apr 14, 2009, 5:08:18 PM4/14/09
to web2py Web Framework
Yes, there should be a gluon/settings.py that was not there before.

Did you use bzr, svn or the source from the web page?

Massimo

Gary

unread,
Apr 14, 2009, 5:10:32 PM4/14/09
to web2py Web Framework
Source from the web page.



On Apr 14, 5:08 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Yes, there should be agluon/settings.py that was not there before.
>
> Did you use bzr, svn or the source from the web page?
>
> Massimo
>
> On Apr 14, 3:42 pm, Gary <gary.k.ma...@gmail.com> wrote:
>
> > I updated to 1.62 this morning and made two changes in the views.
> > When I uploaded to GAE, the application failed with a "600 server
> > error" and the log shows:
>
> > <type 'exceptions.ImportError'>: No module named settings
> > Traceback (most recent call last):
> >   File "/base/data/home/apps/utilityplant/1.332789504321242905/
> > gaehandler.py", line 16, in <module>
> >     fromgluon.settings import settings
>
> > I cannot find a setting.py file in thegluondirectory and I'm not

mdipierro

unread,
Apr 14, 2009, 5:50:06 PM4/14/09
to web2py Web Framework
I just downloaded it again and the settings.py is there and works fine
for me. Please download it again.

Massimo

Álvaro Justen [Turicas]

unread,
Apr 14, 2009, 5:55:13 PM4/14/09
to web...@googlegroups.com
On Tue, Apr 14, 2009 at 6:50 PM, mdipierro <mdip...@cs.depaul.edu> wrote:
> I just downloaded it again and the settings.py is there and works fine
> for me. Please download it again.

How web2py_src.zip is created in server? Some time ago I had a problem
downloading this file (error 404). Is there a chance that Gary
downloaded partial file (when zip archive was in creation proccess)?

--
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21 3021-6001 / 9898-0141
http://www.peta5.com.br/

Gary

unread,
Apr 14, 2009, 6:06:40 PM4/14/09
to web2py Web Framework
Massimo,

You are absolutely correct and it was in the file that I downloaded
this morning. I must have done something that failed to copy into the
subdirectories.

I just want to say that that Web2py is a beautiful piece of work and
you should be commended for it's elegance. I found it a little hard
to 'throw away' my previous conceptions but I've gone from zero to
creating a decent application, including learning Python and GAE
(bigtable), in about 6 weeks. That's probably a little long, but I'm
been in this industry for 40 years. I had a lot to unlearn. :-)

Thanks for a great effort.

Regards,
Gary

mdipierro

unread,
Apr 14, 2009, 6:18:07 PM4/14/09
to web2py Web Framework
Thanks Gary and thanks for using web2py.

Massimo
Reply all
Reply to author
Forward
0 new messages