Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

jinja : Jinja printing

This document describes the lino.modlib.jinja plugin

Side note: Code snippets (lines starting with >>>) in this document get tested as part of our development workflow. The following initialization snippet tells you which demo project is being used in this document.

Code examples in this document use the lino_book.projects.min1 demo project:

>>> from lino import startup
>>> startup('lino_book.projects.min1.settings')
>>> from lino.api.doctest import *
class lino.modlib.jinja.JinjaBuildMethod

Inherits from lino.modlib.printing.DjangoBuildMethod.

django-admin commands

This plugin defines two django-admin commands.

showsettings

Print to stdout all the Django settings that are active on this Lino site.

Usage example:

>>> from atelier.sheller import Sheller
>>> shell = Sheller("lino_book/projects/min1")
>>> shell("python manage.py showsettings | grep EMAIL")
... 
DEFAULT_FROM_EMAIL = webmaster@localhost
EMAIL_BACKEND = django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST = mail.example.com
EMAIL_HOST_PASSWORD =
EMAIL_HOST_USER =
EMAIL_PORT = 25
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = None
EMAIL_SUBJECT_PREFIX = [min1]
EMAIL_TIMEOUT = None
EMAIL_USE_LOCALTIME = False
EMAIL_USE_SSL = False
EMAIL_USE_TLS = False
SERVER_EMAIL = root@localhost
status

Write a diagnostic status report about this Lino site.

A functional replacement for the diag command.

>>> shell = Sheller("lino_book/projects/cosi1")
>>> shell("python manage.py status")
... 
Plugins
=======

- lino : lino
- about : lino.modlib.about
- jinja : lino.modlib.jinja(needed by lino_react.react)
- react : lino_react.react(needs ['lino.modlib.jinja'])
- printing : lino.modlib.printing(needed by lino.modlib.system)
- system : lino.modlib.system(needed by lino_cosi.lib.users, needs ['lino.modlib.printing'])
- users : lino_cosi.lib.users(needs ['lino.modlib.system'])
- contenttypes : django.contrib.contenttypes(needed by lino.modlib.gfks)
- gfks : lino.modlib.gfks(needs ['lino.modlib.system', 'django.contrib.contenttypes'])
- help : lino.modlib.help(needs ['lino.modlib.system'])
- office : lino.modlib.office(needed by lino_xl.lib.countries)
- xl : lino_xl.lib.xl(needed by lino_xl.lib.countries)
- countries : lino_xl.lib.countries(needs ['lino.modlib.office', 'lino_xl.lib.xl'])
- cosi : lino_cosi.lib.cosi(needed by lino_cosi.lib.contacts)
- contacts : lino_cosi.lib.contacts(needs ['lino_cosi.lib.cosi'])
- phones : lino_xl.lib.phones
- excerpts : lino_xl.lib.excerpts(needs ['lino.modlib.gfks', 'lino.modlib.printing', 'lino.modlib.office', 'lino_xl.lib.xl'])
- uploads : lino.modlib.uploads
- weasyprint : lino.modlib.weasyprint(needs ['lino.modlib.jinja'])
- export_excel : lino.modlib.export_excel
- tinymce : lino.modlib.tinymce(needs ['lino.modlib.office'])
- periods : lino.modlib.periods(needed by lino_xl.lib.accounting)
- accounting : lino_xl.lib.accounting(needs ['lino.modlib.periods', 'lino.modlib.weasyprint', 'lino_xl.lib.xl', 'lino.modlib.uploads'])
- sepa : lino_xl.lib.sepa
- products : lino_cosi.lib.products(needs ['lino_xl.lib.xl'])
- memo : lino.modlib.memo(needed by lino_cosi.lib.trading, needs ['lino.modlib.office', 'lino.modlib.gfks'])
- linod : lino.modlib.linod(needed by lino.modlib.checkdata)
- checkdata : lino.modlib.checkdata(needed by lino_xl.lib.vat, needs ['lino.modlib.users', 'lino.modlib.gfks', 'lino.modlib.office', 'lino.modlib.linod'])
- bevat : lino_xl.lib.bevat(needed by lino_xl.lib.vat, needs ['lino_xl.lib.vat'])
- vat : lino_xl.lib.vat(needed by lino_cosi.lib.trading, needs ['lino.modlib.checkdata', 'lino_xl.lib.excerpts'])
- trading : lino_cosi.lib.trading(needs ['lino.modlib.memo', 'lino_xl.lib.products', 'lino_xl.lib.vat'])
- invoicing : lino_xl.lib.invoicing(needs ['lino_xl.lib.trading'])
- finan : lino_xl.lib.finan(needs ['lino_xl.lib.accounting'])
- sheets : lino_xl.lib.sheets(needs ['lino_xl.lib.accounting'])
- staticfiles : django.contrib.staticfiles
- sessions : django.contrib.sessions

Config directories
==================

- .../lino_book/projects/cosi1/config [writeable]
- .../lino_xl/lib/sheets/config
- .../lino_xl/lib/finan/config
- .../lino_xl/lib/trading/config
- .../lino_xl/lib/bevat/config
- .../lino_xl/lib/products/config
- .../lino_xl/lib/sepa/config
- .../lino_xl/lib/accounting/config
- .../lino/modlib/tinymce/config
- .../lino/modlib/weasyprint/config
- .../lino_xl/lib/excerpts/config
- .../lino_xl/lib/contacts/config
- .../lino/modlib/help/config
- .../lino/modlib/users/config
- .../lino/modlib/printing/config
- .../lino_react/react/config
- .../lino/modlib/jinja/config
- .../lino/config

The output may be customized by overriding the jinja/status.jinja.rst template.

jinja/status.jinja.rst

The template file used by the status command.