Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GAE Administration Console Custom Pages not showing up

I'm working on my first GAE project and I'm having some trouble getting custom pages to show up in the Admin Console. I'm following the Google Docs on it, but it doesn't seem to be working for me. I have a feeling it could have something to do with this note:

Note: Only custom pages defined by the default version will be shown in the Admin Console.

but I'm not entirely sure what they mean (the default version of the app?).

The page URLs work fine if I visit them directly, but the links will not show in the Admin Console sidebar.

YAML:

application: namegenerator
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /css
  static_dir: css

- url: /admin/.*
  script: main.app
  login: admin

- url: /.*
  script: main.app

libraries:
- name: jinja2
  version: latest

builtins:
- remote_api: on

admin_console:
  pages:
  - name: Manual DB Entry
    url: /admin/db/add
  - name: Clear DB
    url: /admin/db/clear

Python routing:

app = webapp2.WSGIApplication([('/', MainHandler),
                                ('/vote', SubmitVote),
                                ('/clear_session', ClearUserSession),
                                ('/admin/db/clear', ClearDatabase),
                                ('/admin/db/add', ManualAddToDatabase)],
                             debug=True)

This is all being tested and run on my local machine, by the way. Thanks for any help.

like image 778
DigTheDoug Avatar asked Dec 03 '25 13:12

DigTheDoug


1 Answers

Your code looks fine to me. Did you deploy your application? I think the admin pages will not be shown in your SDK. By the way: An administrator can change which major deployed version of the application is default using Administration Console: https://appengine.google.com/

like image 160
voscausa Avatar answered Dec 06 '25 05:12

voscausa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!