1👍
✅
The answers to questions 1 to 3 are the same, and that is to simply provide a URL without a parameter – say, /profile/
– which just displays the information from request.user
. That way, only logged-in users can see their profiles, and they can only see their own and not anyone else’s.
Question 4 is a bit strange. You should never attempt to write your own code to save passwords. Django does it all for you with the authentication framework. Do not try to rewrite that code unless you really know what you’re doing (hint: you don’t).
Source:stackexchange.com