Hello, good thing you mentioned GAE in your post - it makes a large difference in this case! ;)
I wrote a bit of code that i put at the bottom of /models/db.py that checked for an admin user, and if it did not exist created it. Then after running once removed it from db.py. as for my table management i am using a bit of code that is outdated - what i would recommend (and am in the process of migrating to) is an interface that used smartgrid to display and edit data. this allows me to control which tables are editable, and even control which fields based on user roles. i hope this helps! cfh On Monday, February 25, 2013 8:15:02 AM UTC-8, jjg0 wrote: > > Quick background, I'm still very new to web2py and learning so be prepared > for newbie questions from me! > > When working locally I've been using the admin interface to manage my > tables. If I deploy a site, I no longer have access to this. (or maybe i > do but I'm doing something wrong with gae). To get around this, I'm trying > to make my own admin pages that are only visible to users that are members > of a group I've just been calling 'admins.' I don't want everyone who > signs up to be able to see and edit all my tables. I want to not have to > depend on the built in admin interface to manage my database. (or maybe I > DO want to be relying on this and I've just been doing things wrong?) > > I have most of this working locally so far, but when I deploy I have no > way of making an initial user that is a member of this admin group. Also, > the actual admin group doesn't exist either since I used the admin > interface to create it on my local copy. Is there a common way people set > up an initial user to be an administrator, or am I going about this problem > all wrong? Do people typically bother making admin sections on their > deployed sites, or is there a better way I'm not seeing? > > Thanks! > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.