我的狮身人面像conf.py
里
intersphinx_mapping = {
'django': ('http://docs.djangoproject.com/en/dev/', 'http://docs.djangoproject.com/en/dev/_objects/'),
# 'python': ('https://docs.python.org/3.5', None),
}
现在我尝试引用Django模型:
"""For Django :django:class:`django.forms.fields.ChoiceField`."""
它不会在HTML中产生正确的内容。
该怎么做呢?
发布于 2018-09-07 07:44:17
每个objects.inv not available for intersphinx
intersphinx_mapping = {
'django': ('https://docs.djangoproject.com/en/dev/',
'https://docs.djangoproject.com/en/dev/_objects/'),
}
然后在文档中,这两种方法中的任何一种都可以工作:
:class:`~django.forms.ChoiceField`
:class:`django.forms.ChoiceField`
这是我通过this search of their repo找到的。
https://stackoverflow.com/questions/52212149
复制相似问题