Django Static Pages
A reusable Django app that generates static pages using Django test client.
Installation
Install a package:
$ pip install django-static-pages
Add “static_pages” to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'static_pages', )
Configuration
Specify which files should be generated as static files:
STATIC_PAGES_LIST = (
('/', 'index.html'),
('/about/', 'about.html'),
('news:list', 'news/index.html'),
)
Set path for an output directory of the static files:
STATIC_PAGES_DIR = '/srv/example.com/html/'
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:
STATIC_PAGES_CLIENT_KWARGS = {
'SERVER_NAME': 'example.com',
}
Usage
Just execute the following command:
$ python manage.py generate_static_pages
Requirements
Python 2.7+ or 3+
Django>=1.5
Metadata
Release files for django-static-pages 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-static-pages-0.1.2.tar.gz | 4.9 kB | Without provenance | Details |
Release files / django-static-pages-0.1.2.tar.gz
| Download URL | django-static-pages-0.1.2.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b2a9372f372924ff4fb1f7cfb84466f0961aa734537417c143f6c42276492dd
|
|
BLAKE2b-256 checksum How to use checksums |
209b5edfcaa8a93672fce1cbe9402afbc6c73e243fd9c375a736ca97365dc124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-static-pages 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.