Book Image

Python 3 Web Development Beginner's Guide

By : Michel Anders
Book Image

Python 3 Web Development Beginner's Guide

By: Michel Anders

Overview of this book

<p>Building your own Python web applications provides you with the opportunity to have great functionality, with no restrictions. However, creating web applications with Python is not straightforward. Coupled with learning a new skill of developing web applications, you would normally have to learn how to work with a framework as well.</p> <p><em>Python 3 Web Development Beginner's Guide</em> shows you how to independently build your own web application that is easy to use, performs smoothly, and is themed to your taste – all without having to learn another web framework.</p> <p>Web development can take time and is often fiddly to get right. This book will show you how to design and implement a complex program from start to finish. Each chapter looks at a different type of web application, meaning that you will learn about a wide variety of features and how to add them to your custom web application. You will also learn to implement jQuery into your web application to give it extra functionality. By using the right combination of a wide range of tools, you can have a fully functional, complex web application up and running in no time.</p>
Table of Contents (19 chapters)
Python 3 Web Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – installing CherryPy


The one thing to be careful with when you install CherryPy is that you have to make sure you install it in the right directory if you have more than one Python version on your system. CherryPy uses a setup script to install itself and one way to make sure the CherryPy modules end up in the correct place is by invoking Python explicitly with a full path, for example:

cd C:\CherryPy-3.2.0rc1
c:\Python32\python.exe setup.py install

What just happened?

Running CherryPy's setup.py script installs a number of modules in Python's Lib\site-packages directory. You may verify this was successful by typing the following on the command line:

python -c "import cherrypy"

This checks whether we can import the cherrypy module. If everything is installed correctly, there will be no output produced by this command. However, if CherryPy isn't installed, this may be signaled by an error message:

Traceback (most recent call last):
  File "<string>", line 1, in &lt...