Hi all:
Anyone have tried http://jpscaletti.com/webpy_auth/
I use it like the following code, but always got 404 Not found error
on " /login " .
import web
from web.contrib.auth import DBAuth
urls = (
'/', 'index',
)
app = web.application(urls, locals())
db = web.database(dbn='mysql', db='xxxxx', user='xxxxx', pw='xxxxx')
settings = {}
auth = DBAuth(app, db, **settings)
class index:
@auth.protected()
def GET(self):
return 'Hello World!'
if __name__ == "__main__":
app.run()
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.