提供了一种在django应用程序中集成受保护的基于sphinx的文档的方法。
django-documentation的Python项目详细描述
一、二、二、二、二、二、二、二、二、三、三、三、三、三、三、四、四、四、四、四、四、四、四、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、六、`应用程序的目的是集成
受保护的基于狮身人面像的文档。
安装
==
依赖关系
~~~~~~~~~~
installing django simple feedback
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用pip安装到python路径中:
pip install-e git+git://github.com/narsil/django documentation.git=django documentation设置.py::
已安装的应用程序=(
…
‘文档’,
)
add*'(r'^docs/',include('documentation.url')*到您的URL::
urlpatterns=patterns('',
…
(r'^docs/',include('documentation.url'),
)设置
~如果计划使用
``lambda user:true``,则可能不应使用此应用程序,因为
staticfiles更适合此任务。:Br//>文档/根= '/Pruts/to/docs/'BrastOpTyAccess函数= LAMBDA用户:用户.ISSuffssBR/> BR/>文档文档根是您的狮身人面像文档的根所在,Mag文件存在,如果HTML文档是“BR//>放置在‘文档文档根+ +‘构建/ HTML /’”以外的地方,那么您
可以覆盖它::
BR/>documentation_html_root='/my/other/location/
请注意,当debug
为false时,django documentation通过x-sendfile提供内容,否则它使用
`django.views.static.serve<;https://docs.djangoproject.com/en/dev/howto/static files/\django.views.static.serve>;`
要重写,请使用::
./manage.py makedoc
受保护的基于狮身人面像的文档。
安装
==
依赖关系
~~~~~~~~~~
installing django simple feedback
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用pip安装到python路径中:
已安装的应用程序=(
…
‘文档’,
)
add*'(r'^docs/',include('documentation.url')*到您的URL::
urlpatterns=patterns('',
…
(r'^docs/',include('documentation.url'),
)设置
~如果计划使用
``lambda user:true``,则可能不应使用此应用程序,因为
staticfiles更适合此任务。:Br//>文档/根= '/Pruts/to/docs/'BrastOpTyAccess函数= LAMBDA用户:用户.ISSuffssBR/> BR/>文档文档根是您的狮身人面像文档的根所在,Mag文件存在,如果HTML文档是“BR//>放置在‘文档文档根+ +‘构建/ HTML /’”以外的地方,那么您
可以覆盖它::
BR/>documentation_html_root='/my/other/location/
请注意,当debug
为false时,django documentation通过x-sendfile提供内容,否则它使用
`django.views.static.serve<;https://docs.djangoproject.com/en/dev/howto/static files/\django.views.static.serve>;`
要重写,请使用::
./manage.py makedoc