Pre-release
This release is a pre-release and may not be stable for production use.
Simple leonardo utility for generating Leonardo Sites from templates declared in yaml or json localy or on remote storage.
Installation
pip install leonardo-sitestarter
note: be sure that you have synced templates and collected & compressed static files.
Settings
# default
LEONARDO_BOOTSTRAP_URL = 'http://github.com/django-leonardo/django-leonardo/raw/master/contrib/bootstrap/demo.yaml'
LEONARDO_BOOTSTRAP_DIR = '/srv/leonardo'
ls /srv/leonardo
demo.yml
Example
auth.User:
admin:
password: root
mail: root@admin.cz
web.Page:
QuickStart:
title: Quickstart
slug: quickstart
override_url: /
featured: false
theme: bootstrap
in_navigation: true
active: true
color_scheme: default
content:
header:
web.SiteHeadingWidget:
attrs:
site_title: Leonardo Site
content_theme: navbar
base_theme: default
dimenssions:
md: 2
Commands
Bootstraping site is kicked of by middleware in default state, but if you want bootstrap manualy and then uninstall this plugin you can do this:
python manage.py bootstrap_site demo python manage.py bootstrap_site --url=https://raw.githubusercontent.com/django-leonardo/django-leonardo/master/contrib/bootstrap/blog.yaml
Read More
Metadata
Release files for leonardo-sitestarter 1.0.0a7.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leonardo-sitestarter-1.0.0a7.post1.tar.gz | 6.6 kB | Details |
Release files / leonardo-sitestarter-1.0.0a7.post1.tar.gz
| Download URL | leonardo-sitestarter-1.0.0a7.post1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
218bf8300d1722459a7f79b876231c651ff13620b0513dbdfe7d71035acbec8d
|
|
BLAKE2b-256 checksum How to use checksums |
0c51b361faf1f666076134ecf5ad9c0ab9aa584fa98edf68fc933e24db52a6b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |