Django views spawn the error "cleansed = [self.cleanse_setting("", v) for v in value]" and go in infinite loops
I have two views that spawn these messages in "sudo systemctl status gunicorn":
gunicorn:
Nov 07 10:46:36 mysite gunicorn[2107]: cleansed = [self.cleanse_setting("", v) for v in value]
Nov 07 10:46:36 mysite gunicorn[2107]: File "/home/mysite/anaconda3/envs/mysite/lib/python3.10/site-packages/django/views/debug.py", line 135, in cleanse_setting
The whole site works, but any view.py that accesses a certain class spawn these errors. The views were totally working with no problem.
I added 4 fields to the class's 'models.py' then removed them and migrated the database with:
python manage.py makemigrations python manage.py migrate
after that, the error started to show.
Any help would be appreciated.