Ok I can get to /welcome/appadmin by commenting out: #if not gluon.fileutils.check_credentials(request): # redirect('/admin')
in welcome/controllers/appadmin.py That 'works' however now I guess I'm back to questioning how I can control access of this directory to only me? I still can't get to /admin and I'm guessing if I find another call to check_credentials I could do the same thing to access it. On Sep 16, 2:02 pm, Chris S <sanders.ch...@gmail.com> wrote: > That gives the following error: for /welcome/appadmin/index > In FILE: /base/data/home/apps/aionprofessions/1.336383874445587234/ > applications/welcome/controllers/appadmin.py > > Traceback (most recent call last): > File "/base/data/home/apps/aionprofessions/1.336383874445587234/ > gluon/restricted.py", line 178, in restricted > exec ccode in environment > File "/base/data/home/apps/aionprofessions/1.336383874445587234/ > applications/welcome/controllers/appadmin.py:index", line 27, in > <module> > File "/base/data/home/apps/aionprofessions/1.336383874445587234/ > gluon/fileutils.py", line 236, in check_credentials > % users.create_login_url(request.env.path_info) > File "/base/python_lib/versions/1/google/appengine/api/users.py", > line 179, in create_login_url > raise NotAllowedError > NotAllowedError > ---- > > the app shown above aionprofessions is the appname I'm currently > uploading to. That's the same error the admin application gives when > I try to access it. > > On Sep 16, 1:55 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > Try remove > > > if remote_addr not in hosts: > > raise HTTP(400) > > > in youapp/controllers/appadmin > > > Massimo > > > On Sep 16, 1:51 pm, Chris S <sanders.ch...@gmail.com> wrote: > > > > I've read through the manual about GAE deployment. I'm under the > > > impression I can take my currently running development copy (using > > > MySQL), switch the DAL to GAE and then do an explort/import of my > > > databases via appadmin. However, I'm having a problem getting to the > > > Appadmin (or admin in read only). > > > > To keep it simple I've downloaded the web2py_src and I'm working with > > > that. I can upload it to GAE and run the welcome scrip just fine. > > > It's just domain/welcome and it's happy. I can even register user > > > names. > > > > Trying to access domain/welcome/appadmin > > > gives: 400 bad request > > > > Trying to access domain/admin > > > gives: disabeled due to lack of security. > > > > Switching to https: > > > appadmin doesn't change still 400 bad request > > > admin now gives an error ticket about not being able to run files on > > > the system > > > > I've tried putting the appcfg.py in /applicatoins/admin/private > > > I've tried putting my GAE install directory in admin/models/0.py while > > > commenting out the one that points to 'private'. > > > > I'm at a loss. I was under the impression that appadmin worked out of > > > the box, and admin would work in read-only mode if you remove the > > > exception in app.yaml. > > > > I must be missing something, how can the appadmin be accessed with out > > > logging in? I suspect I need to set up some sort of log-in privileges > > > but I don't see anything about that anywhere. Can someone point me in > > > the right direction? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---