You may need to update the version of Django you're running; the current source code (https://github.com/django/django/blob/main/django/db/models/sql/query.py) shows this import:
from collections.abc import Iterator, Mapping Hope that helps. On Tuesday, 26 April 2022 at 18:34:34 UTC+2 rikrdopr...@gmail.com wrote: > Error: > > File > "C:\Users\tecnico.ricardo\PycharmProjects\pythonProject01\venv01\lib\site-packages\django\db\models\sql\query.py", > > line 11, in <module> > from collections import Counter, Iterator, Mapping, OrderedDict > ImportError: cannot import name 'Iterator' from 'collections' > (C:\Users\tecnico.ricardo\AppData\Local\Programs\Python\Python310\lib\collections\__init__.py) > (venv01) PS C:\Users\tecnico.ricardo> > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/18cccf8d-85ba-492e-ac9d-6d4a78ce7888n%40googlegroups.com.