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!


Project Description

For when you don't need no stinkin' CMS

Makes things ever-so-slightly easier when you just want to serve a bunch of pages
that are just rendered templates (with no special views or context)

Routing autogeneration

define STATICPAGES_TEMPLATES in your as a series of
(section_name, base_url, base_template_path) three-tuples:

('homesite', '', 'homesite'),
('subsite', 'url/of/subsite', 'staticpages/subsite'),

make a directory-and-page hierarchy there, and the files will be automatically served with properly-named urls

URL patterns are named by the site section name, and have a parameter for
the path: reverse('sectionname', args=('path/to/file'))

For example:

- index.html
- pricing.html
- about/
- index.html
- team.html
- news.html

reverse('homesite', args=('about/team') -> '/about/team'


Menu activation


Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.3 kB) Copy SHA256 Hash SHA256
Source None Feb 8, 2012

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate