Where is the line:

auth.define_tables(username=True)

Can you post the content of the file that contains it?

On Wednesday, 21 August 2013 15:52:45 UTC-5, Dave S wrote:
>
> I am tying to add authorization to a simple server I had working.
>
> In the db model, I have the line
>  
>
> auth.define_tables(username=True)
>
>
> default.py has, as the docs suggest
> @auth.requires_login()
> def call():
>     return service()
>
> def user():
>     return dict(form=auth())
>
>
> but the tables seem not to be created yet.  Using the url 
> <.../app/default/call> pops up the login form, and I can complete the form, 
> and the 
> request_validation setting appears to be doing something.  But I can't 
> examine the auth_user table (from the appadmin interface) to see the entry.
>
> When I worked through the image app example, auth was added as a later 
> step (IIRC) and auth_user and the related tables were created and can be 
> examined.
>
> I seem to have lost track of how to get the tables created in my current 
> app.
>
> Thanks.
>
> /dps
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to