Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
对于django3.X是否有类似django sphinxdoc的包,或者如何使其与django3.X一起工作_Django_Django Sphinx - Fatal编程技术网

对于django3.X是否有类似django sphinxdoc的包,或者如何使其与django3.X一起工作

对于django3.X是否有类似django sphinxdoc的包,或者如何使其与django3.X一起工作,django,django-sphinx,Django,Django Sphinx,我需要制作文档,我需要使用django sphinxdoc,我在进行迁移时遇到了这个错误 Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/home/hassanyoussef/.cache/pypoetry/virtualenvs/djangotraini

我需要制作文档,我需要使用django sphinxdoc,我在进行迁移时遇到了这个错误

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/home/hassanyoussef/.cache/pypoetry/virtualenvs/djangotrainingcart-TmT73HM3-py3.8/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  ...
  File "/home/hassanyoussef/.cache/pypoetry/virtualenvs/djangotrainingcart-TmT73HM3-py3.8/lib/python3.8/site-packages/sphinxdoc/decorators.py", line 7, in <module>
    from django.utils.decorators import available_attrs
ImportError: cannot import name 'available_attrs' from 'django.utils.decorators' (/home/hassanyoussef/.cache/pypoetry/virtualenvs/djangotrainingcart-TmT73HM3-py3.8/lib/python3.8/site-packages/django/utils/decorators.py)
回溯(最近一次呼叫最后一次):
文件“manage.py”,第22行,在
从命令行(sys.argv)执行命令
文件“/home/hassanyoussef/.cache/pypoety/virtualenvs/djangtrainingcart-TmT73HM3-py3.8/lib/python3.8/site packages/django/core/management/\uuuu init\uuuuuuuuuuuuuuuuuuuuuuuuuuuuu.py”,第401行,从命令行执行
utility.execute()
...
文件“/home/hassanyoussef/.cache/pypoety/virtualenvs/djangotrainingcart-TmT73HM3-py3.8/lib/python3.8/site packages/sphinxdoc/decorators.py”,第7行
从django.utils.decorators导入可用属性
ImportError:无法从“django.utils.decorators”导入名称“available_attrs”(/home/hassanyoussef/.cache/pypoyment/virtualenvs/djangotrainingcart-TmT73HM3-py3.8/lib/python3.8/site packages/django/utils/decorators.py)
有人知道如何解决这个或类似的问题吗