I just tried again, here are the steps that i did
downloaded web2py Version 1.74.1
logged into the admin
created a new application "test"
edited the db.py of test to contain
db.define_table('mytable',Field('myfield','string'))
then i click in the edit interface "database administration" (http://
127.0.0.1:8000/test/appadmin/index)
I get redirected to http://127.0.0.1:8000/admin/default/site
On Dec 15, 2:45 am, Yarko Tymciurak <[email protected]>
wrote:
> On Dec 14, 5:49 pm, selecta <[email protected]> wrote:
>
> > Ok sorry for the little info
> > I log into the general admin (http://127.0.0.1:8000/admin/default/
> > index)
> > I create an application
> > I try to edit the database with appadmin.py but it just redirectsme
> > if I do not comment: if not gluon.fileutils.check_credentials
> > (request): redirect(URL(a='admin', c='default', f='index'))
>
> I am not able to reproduce; here's what I did:
>
> clean pull, current version from google code;
> Version: web2py Version 1.74.1 (2009-12-14 10:05:21)
>
> I create a new app - "test"
> I edit db.py in test (using admin), add a table:
>
> db.define_table('test', Field('name'));
>
> I save, and go to database administration, and add an entry in table
> test --- success (record inpected, seems ok)
>
> What do you mean when you say "I try to edit the database with
> appadmin.py"?
>
> Regards,
> - Yarko
>
>
>
>
>
> > web2py Version 1.72.3 (2009-11-10 09:17:13)
>
> > On Dec 14, 3:27 pm, mdipierro <[email protected]> wrote:
>
> > > I am not sure the behavior you experience is wrong. Is this about
> > > appadmin? Did you try after login in admin? can you show us the
> > > workflow you experience and what you expect? Which web2py version?
>
> > > Massimo
>
> > > On Dec 14, 4:06 am, selecta <[email protected]> wrote:
>
> > > > if not gluon.fileutils.check_credentials(request):
> > > > redirect(URL(a='admin', c='default', f='index'))
>
> > > > Whenever this line is in my code I always get redirected, I have no
> > > > idea what to do to avoid that (other than commenting out this line).
>
> > > > I access the server from localhost with an normal http request.
>
> > > > Please helpme.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en.