you need these in options.py

extcron = None
nocron = None


On Dec 28, 12:20 pm, Delaney <[email protected]> wrote:
> Thanks... This works as a param on the command line ''' start
> web2py_no_console.exe -t -a "<recycle>" -p 80 -i 0.0.0.0 '''
>
> But if create a options.py with
>
> import socket,os
> ip = '0.0.0.0'
> port = 80
> taskbar = True
> password = '<recycle>'
> folder = os.getcwd()
> server_name = socket.gethostname()
>
> I get...
>
> >web2py.exe -L options.py
>
> default applications appear to be installed already
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2009
> Version 1.72.3 (2009-11-10 09:17:13)
> Database drivers available: SQLite3, MySQL
> Starting cron...
> Traceback (most recent call last):
>   File "web2py.py", line 5, in <module>
>   File "gluon/widget.py", line 779, in start
> AttributeError: 'module' object has no attribute 'extcron'
>
> Note this happens with a options.py with even just 'port=80' in it.
> Is there something else I'm missing?
>
> On Dec 28, 9:57 am, mdipierro <[email protected]> wrote:
>
> > If you use the built-in web server, when you start it, serve from
> > 0.0.0.0
>
> > On Dec 28, 11:39 am, Delaney <[email protected]> wrote:
>
> > > I'm using web2py for an intranet but notice that in the default config
> > > web2py does not handle all requests to the port you serve from.
> > > Basically I want to accept connections from
> > > 'localhost','127.0.0.1','whatevermyhostnameis','etc' all on say port
> > > 80 of the server.  I know how to set this up but can't seem to find
> > > the right page explaining it in the manual.  I see on page 111 it
> > > talks about the 'options_std.py' file but doesn't explain if for
> > > example you can set the ip to for example  ['127.0.0.1','192.168.0.1']
> > > or hostname to [socket.gethostname(),'localhost']
>
> > > Any help would be appreciated... Thanks!
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to