I was working on my project and everthing worked fine. I tried to open the server in another browser and this error appeared. I stopped the project and start it agian and it stop working on my main browser aswell. I dont have any idea what this cause it.
JavaScript
x
21
21
1
Internal Server Error: /account/login/
2
Traceback (most recent call last):
3
File "A:repostopanimevenvlibsite-packagesdjangocorehandlersexception.py", line 47, in inner
4
response = get_response(request)
5
File "A:repostopanimevenvlibsite-packagesdjangocorehandlersbase.py", line 204, in _get_response
6
response = response.render()
7
File "A:repostopanimevenvlibsite-packagesdjangotemplateresponse.py", line 105, in render
8
self.content = self.rendered_content
9
File "A:repostopanimevenvlibsite-packagesdjangotemplateresponse.py", line 83, in rendered_content
10
return template.render(context, self._request)
11
File "A:repostopanimevenvlibsite-packagesdjangotemplatebackendsdjango.py", line 61, in render
12
return self.template.render(context)
13
File "A:repostopanimevenvlibsite-packagesdjangotemplatebase.py", line 168, in render
14
with context.bind_template(self):
15
File "C:PythonPython391libcontextlib.py", line 117, in __enter__
16
return next(self.gen)
17
File "A:repostopanimevenvlibsite-packagesdjangotemplatecontext.py", line 244, in bind_template
18
updates.update(processor(self.request))
19
ValueError: dictionary update sequence element #0 has length 0; 2 is required
20
[18/Mar/2021 18:52:01] "GET /account/login/ HTTP/1.1" 500 86400
21
If there is any other information that you need tell me.
Advertisement
Answer
The problem was that I had a view in context_processors
that required login @login_required
. So I couldnt load any page because i wasnt logged in