M
M
Mimobike2021-08-13 15:12:28
Django
Mimobike, 2021-08-13 15:12:28

How to understand unauthenticated user?

hello, there are requirements for the task Unauthenticated users can post messages via API in chat so others can read them.
Django, Django REST Framework, PostgreSQL
- The message must contain author(unauthenticated user) email and text, create date and update date.
- Email validation (regex to check if that is real email)
...
please tell me how to understand unauthenticated user here, how the request should be filled in and how to build a model? because as I understand it

author = models.ForeignKey(User, on_delete=models.CASCADE)

won't fit

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2021-08-13
@Mimobike

What's the problem? If there is a problem with English, you can use a translator.
Unauthenticated - unauthenticated. In fact, anyone who wants to.

The message must contain author(unauthenticated user) email and text, create date and update date.

It seems to me that everything is described in detail here: The message must contain the author's email (if it is not auto-torn), text, date of writing and update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question