Skip to main content

A Stacks application for generating static HTML pages.

Project description

# stacks-page

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.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 '/'.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stacks-page-0.2.3.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stacks_page-0.2.3-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stacks-page-0.2.3.tar.gz.

File metadata

  • Download URL: stacks-page-0.2.3.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stacks-page-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ebf5ee7bf01128aadedb884b26511381e5ecfa2348f903fb7611fa4927f7e97d
MD5 7988279823897bcfd86536b271c96bad
BLAKE2b-256 054f962261435658349cb9575f198c1e9d66e33891d62a2a88d9eb8618b48912

See more details on using hashes here.

File details

Details for the file stacks_page-0.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for stacks_page-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4f8e0c6e5ed0fafd6ed0744ae4c630625b33cb0c3d372403401d2fcfc7d72c6c
MD5 d917465326de84dd8fe2491d7666a7c6
BLAKE2b-256 75fe0efde3450de77febc01748de6b6a7d3b08a16ca6aea7d94ccd4c5ee2c866

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page