I don't quite understand what you mean...
When you say load the url: /userprofile/1234/ at got your urls.py to
get <id> from the URL.
Then you could load that userprofile from the db with e.g.
def a_nice_view(request, id):
from django.auth.models import User
userprofile = User.objects.get(pk=id)
## Then do updating on that profile here ##
userprofile.username = "Somethingnew"
It's the same way with a form/request, and you can get the userprofile
with: request.user
All this is pretty basic stuff, and as I've seen you ask a lot of
these questions on django-users I would really advise you to read a
introductory book or do some more tutorials before trying to make
something advanced yourselves.
--
With regards, Herman Schistad
If you have the "AuthenticationMiddleware" activated you would use request.user
This returns a User object, which you then can use to further edit things.
E.g.
user = request.user
user.username = "Somethingnew"
user.save()
Or, as Kevin Renskers said, you would create a seperate model for the
userprofile if you wanted to extend it. Here you will need to get the
user profile with user.get_profile() and remember to set the
following: AUTH_PROFILE_MODULE = "myapp.mysiteprofile"
Then you could use the above example like this:
user = request.user
user.get_profile().homepage = "http://example.org"
user.save()