NicholasStudt

Home of Django Static Expander

This project allows static pages to be expanded and served with the Django template system.

Example usage in your sites' urls.py file.

url(r'^(?P<url>.*.html)$', 'static_expander.views.serve',
    {'document_root' : '/path/to/my/files/',
     'directory_index' : ('index.html','index.htm'),
     'extensions' : ('.html','.htm'),
     'require_auth' : True,
     'content_as_template': True,
     'perms' : ('can_add',),
     'base_template': 'base.html'}),

Latest Features

  • Ability for the pages being served to utilize template tags, 'content_as_template' flag controls this behavior.
  • dynamic include template tag updated to add no_recurse option and ability to save results into a variable.

Download Release

  • 1.3.3 (Memory Leak fix when serving large files.)
  • 1.3.2 (Bugfix Release) Oct 27 2009
  • 1.3 Oct 19 2009