Thanks heaps , I noticed that.
On 29/01/2018 8:28 PM, "Daniel Roseman" wrote:
On Monday, 29 January 2018 05:57:55 UTC, suabiut wrote:
>
> I manage to fixed it. I have created two instances (profile_info and info)
> in my view, i use the first instance to access the information from my
> Profile
On Monday, 29 January 2018 05:57:55 UTC, suabiut wrote:
>
> I manage to fixed it. I have created two instances (profile_info and info)
> in my view, i use the first instance to access the information from my
> Profile model and the second instance to access th User model. I also set
> the *AUTH_
I manage to fixed it. I have created two instances (profile_info and info)
in my view, i use the first instance to access the information from my
Profile model and the second instance to access th User model. I also set
the *AUTH_PROFILE_MODULE = 'Profile' in my settings.py.*
*my updated view.py*
Thanks heaps that worked. But then how to i retrieve the rest of the
profile info from the second table? i have a one-to-one relationship. i
mange to extract data from the user table which is first name, last name,
email. but i am having difficulty figuring out accessing information from
the second
There are a bunch of ways to do it.
Show us your view, if it's a function based view, just do your select on
(username=request.user)
Dylan
On Sun, Jan 28, 2018 at 4:59 PM, sum abiut wrote:
> Hi,
> i have a django app that i want the users to be able to view only their
> user profile once they h
Hi,
i have a django app that i want the users to be able to view only their
user profile once they have login. currently any user that login is able to
view other users profile as well. Appreciate is you could point me to the
right direction.
cheers,
--
You received this message because you are
6 matches
Mail list logo