Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write Web pages with Python programming language

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to write web pages with Python programming language". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Web framework of python

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

Zope and Plone in the website structure have Windows installation files, which can be used when installed all the way.

Quixote

Quixote/CherryPy is almost available if you download it with your own web server.

The easiest way to use Quixote is:

1. Install Python

2. Add the directory of python to your environment variable path, or you don't have to add it, that is, you can type the path every time.

3. Download and extract the Quixote. The documents are in the doc directory.

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

5. Run python simple_server.py in Quixote's server directory and visit http://localhost:8080/.

It's a little more complicated.

Django is good, add a sqlite3 as the background, and then write the program with gvim

If setting up APACHE+MYSQL under WIN is troublesome, you can use WampServer, integrate apache/mysql/php, and then equip APACHE with MOD _ PYTHON and DJANGO.

Karrigell is also good. If the system has been installed with python, it can be decompressed and run directly. It comes with demonstrations, including applications (wiki/Bussiness/task/html edit) and components (page templates, RequestHandler parameter debugging, Cooki, etc.), which is very convenient!

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

You can also try pylons. Its debugging has its own characteristics.

Webpy.org

You're gonna love 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

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

This is the end of the content of "how to write web pages with Python programming language". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report