Database: storing data from user registration form

Posted by teggy on Stack Overflow See other posts from Stack Overflow or by teggy
Published on 2010-03-12T19:32:49Z Indexed on 2010/03/12 19:47 UTC
Read the original article Hit count: 291

Filed under:
|
|

Let's say I have an user registration form. In this form, I have the option for the user to upload a photo. I have an User table and Photo table. My User table has a "PathToPhoto" column. My question is how do I fill in the "PathToPhoto" column if the photo is uploaded and inserted into Photo table before the user is created? Another way to phrase my question is how to get the newly uploaded photo to be associated to the user that may or may not be created next.

I'm using python and postgresql.

© Stack Overflow or respective owner

Related posts about database

Related posts about python