8000 Cannot install · Issue #999 · jieter/django-tables2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot install #999
Open
Open
@oe8bck

Description

@oe8bck

Hi,
I think this package would be great for my application, but I cannot enable it. If I do it on a simple Django installation like it's written in the documentation, I get this error:

container  |   File "/home/user/.local/lib/python3.8/site-packages/django_tables2/views.py", line 155, in SingleTableMixin
container  |     def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
container  | TypeError: 'type' object is not subscriptable

My settings.py looks like this:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_tables2',
]

...

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                "django.template.context_processors.request",
            ],
        },
    },
]

What did I do wrong?

Ch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0