sphinx-doc / sphinxcontrib-django

This is a sphinx extension which improves the documentation of Django apps.
https://pypi.org/project/sphinxcontrib-django/
Apache License 2.0
45 stars 25 forks source link

Deprecated function call #31

Closed aDramaQueen closed 1 year ago

aDramaQueen commented 2 years ago

Description

Hi,

As of Django v.4.0 there is no longer force_text. It's now force_str

Django - Documentation: django.utils.encoding

Steps To Reproduce

  1. Create a Django 4.0 project
  2. Setup Sphinx with sphinxcontrib-django
  3. Try to generate documentation

Actual Behavior

Throws exception during DOC generation

Expected/Desired Behavior

Throws no exception during DOC generation

Screenshots

Exception

exception

Deprecated Code Snippet

force_text

timobrembeck commented 2 years ago

@aDramaQueen this is clearly a duplicate of #24. But since this repository is apparently no longer maintained, I added support for Django 4 to my fork nearly two years ago:

timobrembeck commented 1 year ago

Duplicate of #24