Jun 19, 2023
Hello Taoshaoz, This error is caused because when you are not logged in, the request.user object is an Anonymous User.
To solve the error, you need to be authenticated.
First, create a superuser.
Log in with the superuser on the admin site
Then refresh the http://127.0.0.1:8000/stories page.