Skip to content

Django 4.0.1 Support #56

@btc2100k

Description

@btc2100k

Hello,

I am trying to add this library to my latest Django project (Django 4.0.1) on Python 3.10

I have followed the instructions but it seems some things in Django 4.0 have changed, and I am wondering if there is a way to continue making this library work with Django 4.

Here is the current status:

'TEMPLATES' variable seems to have changed a bit, I tried this:

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': ['templates'],
        '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.core.context_processors.request',
            ],
        },
    },
]

However, PyCharm is highlighting django.core.context_processors.request', so I imagine this needs to be corrected

The final error I am getting from python manage.py runserver is django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'django_activeurl.templatetags.activeurl': cannot import name 'urlquote' from 'django.utils.http' (/Users/me/.local/share/virtualenvs/my-project-KF_-XuuK/lib/python3.10/site-packages/django/utils/http.py)

Any ideas?

Thank you so much in advance for this wonderful library, and if there is any way I can contribute on adding an update to make django-activeurl work with Django 4, let me know.

Dalton

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