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!

A reusable Django app that generates static pages using Django test client

Project Description

A reusable Django app that generates static pages using Django test client.


  1. Install a package:

    $ pip install django-static-pages
  2. Add “static_pages” to your INSTALLED_APPS setting:



Specify which files should be generated as static files:

    ('/', 'index.html'),
    ('/about/', 'about.html'),
    ('news:list', 'news/index.html'),

Set path for an output directory of the static files:


This kwargs will be passed to the Django test client arguments. It may be usefull if you want to control WSGI environments of the RequestFactory of the the client:

    'SERVER_NAME': '',


Just execute the following command:

$ python generate_static_pages


  • Python 2.7+ or 3+
  • Django>=1.5
Release History

Release History

This version
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
django-static-pages-0.1.2.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Dec 12, 2015

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