Thanks Anthony. Everything is working fine now!
On Thursday, May 10, 2012 3:37:53 PM UTC-5, Anthony wrote:
>
> @auth.requires_login()
> def user():
>
> Don't require login to get to the user() function -- if you're not logged
> in, it redirects to the user() function, which will result in an inf
@auth.requires_login()
def user():
Don't require login to get to the user() function -- if you're not logged
in, it redirects to the user() function, which will result in an infinite
redirect loop.
Anthony
On Thursday, May 10, 2012 11:33:34 AM UTC-4, man24 wrote:
>
> Here is the model file - >
Here is the model file - > db2.py
# coding: utf8
db.define_table('page',
Field('title', requires=IS_NOT_IN_DB(db, 'page.title')),
Field('body', 'text', requires=IS_NOT_EMPTY()),
Field('created_on', 'datetime', default=request.now,
readable=False, writable=False),
Can you post your exact code (models, controllers, views)?
On Thursday, May 10, 2012 1:22:14 AM UTC-4, man24 wrote:
>
> Sorry for reposting the question. I am following the 'wiki' example given
> in the web2py book. After first implementation, it worked fine, however,
> now when I click on any
4 matches
Mail list logo