Python Zope Tutorial

Python Zope Tutorial thumbnail
Zope is a free application server built in the Python programming language.

Zope is a Web application server written entirely in the Python programming language. A simple Web server, such as the open-source Apache, serves static (that is, unchanging) Web pages. By adding common gateway interface (CGI) scripting with PHP or Perl and a database back end such as MySQL, Web servers gain considerably greater functionality as found in e-commerce and e-learning sites. A full-fledged application server such as Zope ties together the programming logic found in scripts with the data found in databases to create a faster, more scalable Web experience.

Instructions

  1. Download and Install Zope

    • 1

      Download the Win32 Zope binary from the Zope downloads page. Save the file to the desktop or a folder. Double-click on the file and follow the directions as the installer guides you through the installation process. Simplify matters by choosing the default installation location and full installation.

    • 2

      Choose to run Zope as a Windows service if you plan on serving pages and applications to the public. In this case, you will need to install the Python library PyWin32. If you only want to learn and experiment with Zope, do not choose to run Zope as a Windows service.

    • 3

      Start Zope by navigating to the Zope folder; double-click on the file "run zope in console." You will then see a console window with Zope start-up information. You will use and manage Zope through a Web browser. Open your Web browser and type "http://localhost:8080" in the address bar. You will see the Zope Quick Start menu.

    Creating a Web Page From a Template in Zope

    • 4

      Open your Web browser and type the following URL into the address window:

      http://localhost:8080/manage

      Enter the user name and password you created when you installed Zope. This will take you to the Zope Management Interface (ZMI).

    • 5

      Create a folder with the "ID" tests in the root folder. Click on the folder and select "Page Template" from the Add list. Give it the name "TestsPage" and click "Add."

    • 6

      Click on the TestsPage template you just created. Delete the filler HTML tags and create your own very short HTML tags and content, such as:

      <html>

      <body>

      <h1>Hello, Zope!</h1>

      </body>

      </html>

      Click "Save Changes" at the bottom of the window.

    • 7

      Click the test tab in the Template management interface to view TestsPage. It should consist of the large headline "Hello, Zope!"

Related Searches:

References

Resources

  • Photo Credit Stockbyte/Stockbyte/Getty Images

Comments

Related Ads

Featured