django redirect url containing id
- by dana
hello,
i want to add in my settings.py a declaration like:
LOGIN_REDIRECT_URL='^private_profile/(?P<id>\d+)/$'
#or
LOGIN_REDIRECT_URL='/accounts/private_profile/id/'
so that when the user with the id 1, for example,is logging in, he will be redirected to
LOGIN_REDIRECT_URL='/accounts/private_profile/1/'
but both alternatives,
LOGIN_REDIRECT_URL='^private_profile/(?P<id>\d+)/$'
#or
LOGIN_REDIRECT_URL='/accounts/private_profile/id/'
are wrong, because in my browser i don't see the current user id, where am i wrong?
Thanks