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

UNKNOWN

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 settings.py as a series of
(section_name, base_url, base_template_path) three-tuples:

STATICPAGES_TEMPLATES = [
('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:

$PROJECT_ROOT/templates/homesite/
- index.html
- pricing.html
- about/
- index.html
- team.html
- news.html

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


TODO
====

Menu activation
---------------


http://110j.wordpress.com/2009/01/25/django-template-tag-for-active-class/



Sitemaps
--------

http://minimoesfuerzo.org/2011/02/12/sitemaps-django-static-pages/
Release History

Release History

This version
History Node

0.2.3

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
django-staticpages-0.2.3.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2012

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