Creating Unique Profile Pages for Users
===

I've created quite a beefy app. I have a profile page system implemented. Now, I am a pretty big 'noob' when it comes to programming and app engine, so be gentle here, (please). So I know that you can pass parameters in to the url example, /profile/<profile_id>. I'm just not completely sure how to implement that into my code or the thought process behind it. 

This would be my database:

    class User(db.Model):
    name = db.StringProperty(required = True)
    pw_hash = db.StringProperty(required = True)
    email = db.StringProperty(required = True)

This is my profile handler:

    class Profile(MainHandler):
    def get(self):
        if self.user:
            current_user = str(self.user.name)
            key='ag5kZXZ-c3VpdGVnYW1lcnINCxIHSW1hZ2VkYhglDA '
            imgs  = db.GqlQuery("select * from Imagedb WHERE name =:1", current_user)
            for img in imgs:
                key = img.key() # this is the key
            self.render('profile.html', profile_image = key ,username = self.user.name, email = self.user.email, first_name = self.user.first_name, last_name = self.user.last_name, country = self.user.country, prov_state = self.user.prov_state, city_town = self.user.city_town)
        else:
            self.redirect('/register')

The profile has a display picture system implemented at the moment as well. My goal here is to basically build what you would call a social network. AKA, blog on each profile, and a message system, along with some other systems.

I appreciate any and all help. Even if they are just your thoughts/opinions. I have my site up loadable to a domain, so it would be possible to show you, but I would really like to keep it under wraps until its done :P.

Thanks very much.



