Where to set admin password for web2py when hosted as WSGI?

660 views
Skip to first unread message

Phyo Arkar

unread,
Sep 29, 2008, 6:14:47 AM9/29/08
to web...@googlegroups.com
Hello massimo;

on WSGI hosts , how can i set password for admin interface?

Timothy Farrell

unread,
Sep 29, 2008, 8:53:04 AM9/29/08
to web...@googlegroups.com
My name is not Massimo, but to save him some email time, here's my answer.

If you can run the server version of web2py, run it like web2py.py -a
<password>. Then stop it. Make sure your options.py file contains a
line that says "password='<recycle>'" and that you have a
parameters_PORTNUM.py that looks like password="<password hash here>".
That should be all you need. Your WSGI setup server should pick up on
the remember setting and use the parameters file.

If you can't run the server version, (you don't have shell access). You
could run it on your desktop, and copy up the parameters file to your
server.

-tim

Boris Manojlovic

unread,
Sep 29, 2008, 6:28:49 AM9/29/08
to web...@googlegroups.com
there is file called parameters_8000.py in web2py root folder
change file name to be parameters_80.py if you are using port 80 as access port (create link to parameters_8000.py)




On Mon, Sep 29, 2008 at 12:14 PM, Phyo Arkar <phyo.ar...@gmail.com> wrote:
Hello massimo;

on WSGI hosts , how can i set password for admin interface?





--
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."-Albert Einstein
Reply all
Reply to author
Forward
0 new messages