Skip to main content

Simple leonardo module which is composed from tools for generating Leonardo Sites from templates declared in yaml or json localy or on remote storage

Project description

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

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

leonardo-sitestarter-1.0.0a7.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file leonardo-sitestarter-1.0.0a7.tar.gz.

File metadata

File hashes

Hashes for leonardo-sitestarter-1.0.0a7.tar.gz
Algorithm Hash digest
SHA256 81b594571af26e94e5ff10b219431366f5f0af78bdc1d51feeeacd2f3fff3515
MD5 a96f8af44f1f583f82f728f1454ccccf
BLAKE2b-256 003d0feb605523fdaabebb7a5dcf5425db31e1cd003e9b07a30a1e44cdbe9474

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