411 REFERENCE · Wikibooks
Karrigell
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Karrigell is an open Source Python web framework written in Python
The Python 2 version is the stable release. A version for Python 3.2 and above was released in February 2011
How-tos
Explains "how to" build web applications. This section only applies to the Python3 version
/Pronounce "Karrigell"/
/Install/
/Write the "Hello world" script/
/Build a simple HTML page/
/Write an interactive application in a single script/
/Use the POST method/
/Upload files/
/Redirect to a URL/
/Insert dynamic values in a template/
/Insert an image, a stylesheet, a Javascript in a document/
/Manage encodings/
/Set, read and erase cookies/
/Import a module/
Tutorial
This tutorial explains how to build a simple web based application : the example is a CD collection. The home page will show the list of records, with a counter of visits and a "login" link. People who successfully log in will be able to add / edit / remove records
The first step is to install Karrigell. Download the latest version, unzip it in a folder, open a console window and in this folder run python Karrigell.py. This will start the built-in web server on port 80
/Home page/
/Managing The Database/
Snippets
/Counter/
/Test Mysql/
/Set Content-type header/
External links
Group
Karrigell for Python A review on devshed
K
Web application frameworks
25%
__NOTOC__ __NOEDITSECTION__