how to solve this error <asgiref.local.Local object at 0x7f7e025a4a50> object has no attribut "request"

when I run the server: python runserver it runs normaly … but when I refresh in the browser on the error comes
I try to on other page it comes the same error

AttributeError: <asgiref.local.Local object at 0x7f9ba65c1f50> object has no attribute 'request'

Please post the complete traceback of the error. (We’re likely going to need to dig a bit deeper, but this is the best place to start.)

Note, when posting code or errors here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```.

1 Like