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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:40:08+00:00 2026-06-04T07:40:08+00:00

I have made user registration which includes (name, password, email, phone no) and now

  • 0

I have made user registration which includes (name, password, email, phone no) and now trying to include image too in Google App engine datastore. Everything is working fine just image uploading and resizing was troublesome. But, I have make it work now.

Basically there are three handlers

  • First one for registration page handler (information testing and redirecting to userpage)

“””Get all requests from registration page and store in database”””

userinfo.put()
u_id = userinfo.key().id()

“””create cookie and hash where value is u_id”””

self.redirect(/userpage)

  • Second is userpage handler (which validate cookie created in registration handler, if hash cookie is valid then redirect to userpage else redirect to registration page again)
user_id = Users.get_by_id(u_id)
user_key = ?  # how can I get key of user_id

self.render("user.html", user =user_id.user, avatar = user_id.avatar)

  • Third is image handler
class disp_image(webapp.RequestHandler):
  def get(self):
      key = self.request.get('key')
      image = Users.get(key)
      self.response.headers['Content-Type'] = "image/png"
      return self.response.out.write(image.avatar)

Template

<img src="/disp?key={{avatar}}" />

I have already solve the problem, revision was made to make it more clear for who have down-voted my question earlier.

  • 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-06-04T07:40:09+00:00Added an answer on June 4, 2026 at 7:40 am

    user_key = user_id.key()

    But why is your head spinning? What are you actually trying to accomplish?

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

Sidebar

Related Questions

I have made a user registration where I have salted the user password and
I have made Catifier.com recently, and once the user sets their own background image,
I have made customized user registration page. and i have made that on theme
I have several text fields which compromise a registration form . When the user
I have made a form that asks the user to put in first name
I have working user registration form. It consist of Zend Form Elements. Now I
I have made a web user control (.ascx) which consists of the two html
So I have made a bunch of user controls in my project which integrate
I have made app which allows me to send message to multiple user from
I have made an application that gives the user the option to open up

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.