[Python] how to convert Django documents into HTML

Source: Internet
Author: User

I don't know how many people are paying attention to Django and learning Django. It is necessary to start with the document. However, all documents provided by Django are in the docs directory and are written in the rest format. How can this problem be converted. In fact, it is very simple. If you download the docutils package, decompress the package and you can see a file named buildhtml in the tools directory. copy the file to the docs directory, and then run the command line:

Python buildhtml. py

So thisProgramThe text files in the current directory are automatically converted to HTML files. How are you doing? It's easy.

======================================

The blog from limodou is selected above.

Http://blog.donews.com/limodou/archive/2005/11/11/623564.aspx

Additionally, you need to install the docutils package after downloading it. Otherwise, Python buildhtml. py cannot work.

Installation Method: Enter the directory after docutils decompression, and then execute: Python setup. py install

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.