Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

paste template for a view using webob + genshi

Project Description
Setting Up A New Project

from start to editing code

0. Install virtualenv [Optional but highly recommended]::

easy_install virtualenv

1. Make a virtualenv::

virtualenv myproject

2. Install genshi_view::

cd myproject
. bin/activate
mkdir src
cd src
hg clone # or `easy_install genshi_view`
cd genshi_view
python develop
cd ..

3. Instantitate a template. genshi_view is a pastescript template
that will get you a hello world application OOTB::

paster create -t genshi_view your_project_name

Answer the questions it asks you regarding the template variables.

4. Serve your application to see that it works::

cd your_project_name
paster serve your_project_name.ini

Navigate to the URL that paster displays

5. You're done! Helloworld works. Now you just have to edit the
source code:

- templates are in your_project_name/templates; there is one by default
- static resources are in your_project_name/static
- the request dispatcher is at your_project_name/dispatcher
- the request handlers are at your_project_name/handlers; if you add
more, don't forget to add them to's imports and to
self.handlers in Dispatcher's __init__ function
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
genshi_view-0.3.2.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source May 5, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting