Why are some folders and files still red in PyCharm even though the Django project works correctly?

I'm working on a Django project in PyCharm, and although everything works fine (including migrations, interpreter setup, Django installation, and manage.py is in the correct place), some folders and .py files like models.py, admin.py, etc., still appear in red in the Project view.

Marked the correct root folder (the one containing manage.py) as Sources Root

Ensured all packages (blog, djangoProject) have init.py

All imports are correct and not showing any actual errors

Ran Invalidate Caches / Restart

Вернуться на верх