Skip to content

Compatibility issue with Django 4.0 -> cannot import name 'force_text' #169

@lopify

Description

@lopify

I'm trying to use martor with Django 4.0 but I get this error when running the Django app:

ImportError raised when trying to load 'martor.templatetags.martortags': cannot import name 'force_text' from 'django.utils.encoding'

Details

  • Django version: 4.0
  • Martor version & theme: 1.6.4

Steps to reproduce

  1. Setup a new Django 4.0 project
  2. Add martor to the installed apps
  3. ./manage.py runserver
  4. ImportError: cannot import name 'force_text' from 'django.utils.encoding'

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