Answer the question
In order to leave comments, you need to log in
Own authorization system in django?
I wanted to make a mini site for myself, where, in addition to everything, there will be registration. First, I made my own registration and login system (adding data to the database, and comparing them when logging in), when I tried to find how to make the page display only for authenticated users, I came across built-in models that can be changed for myself, and now I have head is a complete mess. There are a lot of questions at once, sorry for their possible meaninglessness.
1) Is there a difference between my own and created through some UserCreationForm, LogInViews, LogOut views and what is the difference. I just don't understand anything anymore.
2) How is it better to make a registration and login system after all.
3) Still the same my very first question 'how to make the page display only for authenticated users' so that there are no bugs.
I would also be happy for links where you can read / see about all these already existing models, because everything I find confuses me more and more. as I understand it, there are many such models more or less the same.
Thanks in advance
Answer the question
In order to leave comments, you need to log in
About "your own system" is well described in the off-docs https://docs.djangoproject.com/en/3.1/topics/auth/... But before writing your own authentication, you need to learn how to use the standard https://docs.djangoproject.com /en/3.1/topics/auth/...
Registration and authorization are in Django out of the box, there is no need to waste energy on reinventing the wheel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question