DigTheDoug
DigTheDoug

Reputation: 1440

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.

Upvotes: 3

Views: 462

Answers (1)

voscausa
voscausa

Reputation: 11706

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/

Upvotes: 6

Related Questions