My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information

Methods to use when you just want to use the Django dispatcher and there will be no extra business logic in your pages. In some cases flatpages is too flat, and store templates in DB is too much hassle

A cheap page() method to wrap direct_to_template:

    >>> url(^name/$,
    ...    direct_to_template,
    ...    {'template': 'name.html'},
    ...    name='name')
can be expressed as:
    >>> page('name')

And a cheap build() method to build a patterns() full of direct_to_template

    urlpatterns = patterns('', ...)
    urlpatterns += build('Regexp', ['page1', 'page2', ...])
Powered by Google Project Hosting