F
F
fantom_ask2020-07-30 18:52:17
Django
fantom_ask, 2020-07-30 18:52:17

How to create a login and registration menu?

I'm new to django so it's hard for me to find the information I need on the web.
I have already created my own module

class Author(models.Model):
  name_author = models.CharField('nickname', max_length=100)
  pass_author = models.CharField('password', max_length=100)
  email_author = models.EmailField('email', max_length=100)

And the login and registration page
But I don't understand how and where django stores information about whether a user is logged in or not
how to get the id of a user who is already logged in.
or where django can store a one-time code for confirming and adding to the user
's database how to encrypt passwords in django
The maximum that I found was to create a user check before publishing an article.
Can anyone recommend a good and understandable tutorial for this, or simply and clearly explain everything in detail.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-07-30
@bacon

everything is in the docks, it remains to learn how to use them https://docs.djangoproject.com/en/3.0/topics/auth/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question