[Debugging] context must be a dict rather than set. (in Django)
I got this Error "context must be a dict rather than set" TypeError at /update-room/1/ context must be a dict rather than set. Request Method: GET Request URL: http://127.0.0.1:9090/update-room/1/ Django Version: 4.0.3 Exception Type: TypeError Exception Value: context must be a dict rather than set. Exception Location: C:\Users\j\Desktop\pythonwork\lib\site-packages\django\template\context.py , line 278, in make_context Python Executable: C:\Users\j\Desktop\pythonwork\python.exe Python Version: 3.10.3 Python Path: ['C:\\Users\\j\\Desktop\\pythonwork\\Newproject', 'C:\\Users\\j\\Desktop\\pythonwork\\python310.zip', 'C:\\Users\\j\\Desktop\\pythonwork\\DLLs', 'C:\\Users\\j\\Desktop\\pythonwork\\lib', 'C:\\Users\\j\\Desktop\\pythonwork', 'C:\\Users\\j\\Desktop\\pythonwork\\lib\\site-packages'] time: Wed, 13 Apr 2022 02:36:18 +0000 ---------- Let's go to views.py def home ( request ): rooms = Room . objects . all (...