A Stacks application for generating static HTML pages.
Project description
# stacks-page
A Stacks application for generating static HTML pages.
## Dependencies
* `django-versatileimagefield` >= 1.0.2
* `django-textplusstuff` >= 0.4
## Required Settings
### `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 '/'.
A Stacks application for generating static HTML pages.
## Dependencies
* `django-versatileimagefield` >= 1.0.2
* `django-textplusstuff` >= 0.4
## Required Settings
### `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.1.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for stacks_page-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3beadb5eccbb4512925badb2206171d565cd0181ee0fd68b7e122fde4e47dc |
|
MD5 | f5a5fe5d135ba03bed312e30e42db2e3 |
|
BLAKE2b-256 | eb758fc9f6acb5c7810f599f61c4af7715b5575b2225fbaca33c1a1fbcedaec9 |