A Stacks application for generating static HTML pages. Stacks is an in-development, open-source initiative of WGBH (http://www.wgbh.org/)
## Dependencies
* `django-versatileimagefield` >= 1.0.2
* `django-textplusstuff` >= 0.4
## Release Notes
### 0.3
* Added `published` queryset.
* Made static file publishing code more easily importable.
### 0.2.3
* Added the page section slug to the global `extra_context`.
### 0.2.2
* Finessed how modules/renditions receive their social_share_text from a StacksPageSection. If StacksPageSection.social_share_text is populated that's what will be used. If StacksPageSection.social_share_text is empty, its associated modules/renditions will use the global page share text (PageSection.page.social_share_text.
### 0.2.1
* Added new `STACKSPAGE_TEMPLATES` setting.
* Added "Can edit Stacks Page 'Live URL' values" permission.
### 0.2
* Added 'keywords' field to `StacksPage` model.
### 0.1.1
* Including templates in pypi release.
### 0.1
* Initial open source release
## Required Settings
### `STACKSPAGE_TEMPLATES`
Default:
```
STACKSPAGE_TEMPLATES = (
('stacks_page/default_page_template.html', 'Default Page Template'),
)
```
A list of templates you can select for a page.
Example:
```
STACKSPAGE_TEMPLATES = (
('path/to/template_file.html', 'Human Readable Template Name'),
('path/to/another/template_file.html', 'Human Readable Template Name #2'),
)
```
### `STACKSPAGE_STATIC_PUBLISH_SERVERS`
Used to define servers where pages can be published to.
```
STACKSPAGE_STATIC_PUBLISH_SERVERS = {
'staging': {
'server': 'user@staging_server',
'webroot_folder': '/absolute/path/to/webroot/on/server',
'base_url': 'http://staging.somesite.com'
},
'production': {
'server': 'user@prod_server',
'webroot_folder': '/absolute/path/to/webroot/on/server',
'base_url': 'http://www.somesite.com'
}
}
```
TODO: Document 'path_processor'!
### `STACKSPAGE_BUILD_DIRECTORY`
A path on local disc where statically generated StacksPage instances
should be saved-to.
```
STACKSPAGE_BUILD_DIRECTORY = '/path/to/folder'
```
For local development, you'll probably want to set this dynamically. The following code will create a directory named `stackspage_build` at the same level as your project's settings file:
```
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__)
STACKSPAGE_BUILD_DIRECTORY = os.path.join(BASE_DIR, 'stackspage_build')
```
### `STACKSPAGE_URL_PREFIX`
The path your Stacks application is running from, defaults to '/'.
Metadata
Release files for stacks-page 0.3
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 | Actions |
|---|---|---|---|---|
| stacks-page-0.3.tar.gz | 14.3 kB | Without provenance | Details for stacks-page-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stacks_page-0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for stacks_page-0.3-py2.py3-none-any.whl |
Total release size: 36.3 kB
Release files / stacks-page-0.3.tar.gz
| Download URL | stacks-page-0.3.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50e937f73a279a0c188e9a9d6ec7bca11f2a97a3e30f0887035ba9d35d53ed22
|
|
BLAKE2b-256 checksum How to use checksums |
374dd9874dde02dc33bd77de41068fd8558f962b1a3f86bd32438f2b80a68c17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / stacks_page-0.3-py2.py3-none-any.whl
| Download URL | stacks_page-0.3-py2.py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
74b6f0092c26bd300d8c534aec6562d95ab35c57cba2c674dbdf4965cdc1e950
|
|
BLAKE2b-256 checksum How to use checksums |
abee51a72980ef757bd43f1ef5aeff37020a5b1aa44c216bfbfecbfc877963cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stacks-page 0.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.