django link to any user profile in social comunity

Posted by dana on Stack Overflow See other posts from Stack Overflow or by dana
Published on 2010-05-26T10:49:01Z Indexed on 2010/05/26 10:51 UTC
Read the original article Hit count: 352

Filed under:
|
|
|
|

i am trying to build a virtual comunity, and i have a profile page, and a personal page. In the profile page, one can see only the posts of one user(the user whos profile is checked), in the personal page one can see his posts, plus all the posts he has subscribed to (just like in Facebook)

it's a little confusing for me how i can link to the profile of one user, i mean when anybody clicks on a username, it should link to his personal profile page. for example, if someone searches name "abc", the rsult would be "abc",and link to his profile.

How can i pass to one function the username or id of a linked user? i mean, showing the profile of the logged in user who is checking his profile is quite easy.But how about another user profile, if one wants to access it?

thanks a lot!

© Stack Overflow or respective owner

Related posts about django

Related posts about template