Skip to content

AttributeError: 'ForeignKeyStringsChecker' object has no attribute 'config' #430

Open
@EfraimGENC

Description

@EfraimGENC

My Requirements:

Django==5.0.3
django-environ==0.11.2
psycopg2-binary==2.9.9
redis==5.0.3
djangorestframework==3.15.0
markdown==3.6.0
django-filter==24.1
celery==5.3.6
pylint==3.1.0
pylint-django==2.5.5
django-debug-toolbar==4.3.0

When I run this command:
pylint --load-plugins pylint_django --django-settings servis.settings.dev .

I am getting this error:

...
  File "/Users/<myusername>/Documents/projects/<myproject>/venv/lib/python3.12/site-packages/pylint/lint/pylinter.py", line 946, in _astroid_module_checker
    checker.open()
  File "/Users/<myusername>/Documents/projects/<myproject>/venv/lib/python3.12/site-packages/pylint_django/checkers/foreign_key_strings.py", line 120, in open
    args=self.config.django_settings_module,
         ^^^^^^^^^^^
AttributeError: 'ForeignKeyStringsChecker' object has no attribute 'config'

I couldn't find any solution via googling with AttributeError: 'ForeignKeyStringsChecker' object has no attribute 'config'

Is anyone can help me? Do you support Django 5.0 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions