The wonderful use of the Python programming language in website development

Source: Internet
Author: User
Tags plone

The Python programming language is a dynamic language. He can do a lot of things. Let's take a look at how the Python programming language compiles web pages. This is very attractive to many programmers. I hope you will have some gains.

Python web framework

If you want to use Python for website creation, there are currently many excellent website quick development frameworks for you to choose from. As far as I know and have used it, there are zope and plone. You can search for it.

In the website architecture, Zope and Plone have Windows installation files, which can be used after installation.

Quixote

Quixote/CherryPy can be used if the built-in web server is almost downloaded.

The simplest way to use Quixote is as follows:

1. Install Python;

2. Add the python directory to the path of your environment variable. If you do not add it, you can create a path each time;

3. Download and decompress Quixote. The document is in the doc directory;

4. After decompression, install Quixote in the Quixote Directory: python setup. py install.

5. Run python simple_server.py In the server Directory of Quixote to access http: // localhost: 8080.

A little more complicated.

Django is good. Add sqlite3 as the background, and then use gvim to write the program.

If it is difficult to set up APACHE + MYSQL under WIN, you can use WampServer to integrate apache/mysql/php, and then configure MOD_PYTHON and DJANGO for APACHE.

Karrigell is also good. If python is installed in the system, simply decompress it and run it. Self-built demos, including application wiki/Bussiness/task/html edit) and components (page template, RequestHandler parameter debugging, Cooki, etc.) are very convenient!

Add that python setup. py install is also required for the built-in buzhug database of Karrigell so that the demo in Karrgell can run.

You can also try pylons. Its debugging is very characteristic.

Webpy.org

You will like him

I am using django.

Build the environment: XP sp2 + python 2.4.3 + django 0.95. Build the environment: win2003 + python 2.4.3 + django 0.95. Python + Django + apache + mysql

These Web frameworks are simple and convenient.

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.