The wonderful use of Python programming language in website development

黄舟
Release: 2016-12-16 16:14:20
Original
1336 people have browsed it

Python programming language is a dynamic language. He can do a lot of things. Let's take a look at how to write web pages in the Python programming language. This is very attractive to many programmers. I hope you all gained something.

Python's web framework

If you want to use Python to build a website, there are currently many excellent website rapid development frameworks for you to choose from. The only ones I know and have used so far are zope and plone. You can search it.

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

Quixote

Quixote/CherryPy If you use the built-in web server, you can almost use it after downloading it.

The easiest way to use Quixote:

1. Install Python;

2. Add the python directory to your environment variable path. You don’t have to add it, just type the path yourself each time;

3. Download and unzip Quixote, the document is in the doc directory;

4. After unzipping, install Quixote, in the Quixote directory: python setup.py install.

5. Run python simple_server.py in the server directory of Quixote and visit http://localhost:8080/ to take a look.


A little more complicated.

Django is good, add sqlite3 as the backend, and then use gvim to write the program

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


Karrigell is also good. If python is already installed on the system, just unzip it and run it. Comes with demos, including applications (wiki/Bussiness/task/html edit) and components (page templates, RequestHandler parameter debugging, Cookie, etc.), which is very convenient!

In addition, Karrigell’s built-in buzhug database also needs python setup.py install, so that the demo in Karrgell can run

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

webpy.org

You will like it

I am using django

to build the environment: XP sp2 + python 2.4.3 + django 0.95. Building environment: win2003+ python 2.4.3 + django 0.95. python+Django+apache+mysql

I feel that these Web frameworks are very simple and convenient.

The above is the wonderful use of Python programming language in website development. For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!