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 6181141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:58:04+00:00 2026-05-24T00:58:04+00:00

Using Google App Engines webapp framework, is there any way to pass data to

  • 0

Using Google App Engines webapp framework, is there any way to pass data to a base template?
To be specific, I just want a logout button to be visible if the user is logged on (using googles own authentication system).

I’m still learning so I’m not sure what parts are GAE specific and what parts are django specific; having to send the logged in user from every single request handler seems very un-DRY.

  • 1 1 Answer
  • 0 Views
  • 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-24T00:58:08+00:00Added an answer on May 24, 2026 at 12:58 am

    Arguments to base templates are passed the same way as any other template arguments, by being passed to template.render. I usually solve this by having a convenience method on my base handler that inserts common template arguments, like this:

    class BaseHandler(webapp.RequestHandler):
      def render_template(self, filename, template_args):
        path = os.path.join(os.path.dirname(__file__), 'templates', filename)
        template_args.update({
            'user': users.get_current_user(),
            # ...
        })
    
    class MyHandler(BaseHandler):
      def get(self):
        self.render_template('my.html', {'foo': 'bar'})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing software on google app engine. I'm using the webapp framework. is there
I'm using Google App Engine with their webapp framework. Is there something like Django's
I'm writing a Google App Engine application using the WebApp framework. I'd like the
I'm using python google app engine with the webapp framework, substituting jinja2 templates for
I'm using Google App Engine in Python using Google's webapp framework. I want to
I just started with Google App Engine using python and I was following a
I'm using Google App Engine, Jquery and Django. I want POST data to be
I'm using Google App Engine with the standard Django templates found in Webapp. I
How would you go about internationalizing a Google App Engine webapp application using BABEL
in a form, I submit data to a python webapp handler (all Google App

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.