Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 947799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:08:17+00:00 2026-05-15T23:08:17+00:00

I am new to GAE and I am creating an application with the webapp

  • 0

I am new to GAE and I am creating an application with the webapp framework. I was wondering when do you set handlers in your app.yaml and when you define them in your WSGI?

At first I thought you only have one main.py main file running the WSGIApplication but I notice if you want to use the GAE authorization you define that in the handlers. So that means you run multiple WSGIApplications?

I was reading the documents on “Requiring Login or Administrator Status” and it seems they have different applications for different roles.

Maybe something like this?

— general.py – login:
— user.py – login: required
— admin.py: – login: admin

But maybe it’s bad to have your WSGI urls spread all over the place?

If I remember correctly if you run django on GAE you point to one py file and let the framework handle everything?

I don’t want to use Django yet so was wonder if anybody had some pointers/best practices on how to do url/hanlders with webapp?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:08:18+00:00Added an answer on May 15, 2026 at 11:08 pm

    Either method of URL-routing is acceptable.

    app.yaml-based URL routing
    If you can easily structure your app to use app.yaml routing (and authorization), then it’s worth trying: it’ll be less code you’ll have to debug, test, and maintain.

    Here’s an example (from Google) with multiple entry points: http://google-app-engine-samples.googlecode.com/svn/trunk/gdata_feedfetcher/

    Performance should be superior with app.yaml authorization: Your Python script won’t need to be run to determine if a user is an admin of the site.

    one URL-mapping table
    If your app needs something beyond basic URL-routing and authorization then you may find yourself having a comparatively sparse app.yaml and using a larger URL-mapping table.

    For example, you want to display a page to all users, but additionally want a “login” link to show up for an admin. This code (for a simple blog) uses this structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm migrating my gae app to python 2.7. This is my new app.yaml: application:
app.yaml application: cloudymovie version: 1 runtime: java welcome_files: - test.jsp handlers: - url: /test/*
I am brand new to python/GAE and am wondering how to quickly define and
I've accidentally added a new filter to my GAE application. The status of the
I recently configured my app to use the new AppStats feature of GAE. However,
I have a GAE application. A new request is to have a huge database
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I'm using the Tornado framework (Python) on GAE. I'm still kind of new to
As a new python and django developer, I'm creating a Django app on Google
I'm trying to move my gae webapp project to django non-rel. I'm pretty new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.