Welcome | Get started | Dive into Lino | Contribute | Topics | Reference | More

cms (main plugin for Lino CMS)

In Lino CMS this plugin defines the locale directory for all translations.

This page is a tested document and the following instructions are used for initialization:

>>> import lino
>>> lino.startup('lino_book.projects.cms1.settings')
>>> from lino.api.doctest import *

A test failure said that in cms1 there are 0 (on GL) instead of 6 checkdata errors (on my machine). That's why we'd like to see these messages:

>>> rt.show(checkdata.Messages)
... 
No data to display
>>> obj = blogs.Entry.objects.get(id=2)
>>> obj.body_short_preview
... 
'<a href="/admin/#/api/uploads/Uploads/15" target="_blank"></a><img
src="/media/uploads/2022/09/crossroads.jpg"
style="padding:4px;float:left;height:8em" title="Crossroads, Kilham West Field -
geograph.org.uk - 2097672"/>Let\'s choose one or the other of the either roads
(or NOT)!\n\nAnd the hesitation, does it comes rarely(?), Nooo!, we are very
frequently and suddenly put to situations where we must choose between
roads.\n\nOf course, how to choose and what to choose are the questions. But did
we ever ask \'why?\' But of course it depends on the context, let\'s not give it
a context, let\'s talk abstract. \'Why?\' is the question. Maybe to be like a
stoic or something, not sure!\n\nThe advice from a stoic would be to not choose
but just hang around at the fork and not think about it at all, just try to be
at peace, the hesitations aside.\n\nBut no we have to make a choice, why?
because, the world isn\'t going to wait for us! We have to make a choice and
move along with the world, fast forward. We can deal with whatever
comes.\n\nOTOH! sometimes it\'s not worth moving along, sometimes we can just
sit at the fork and think through things, cars, engines, birds, rocket ships or
the stars, really, anything at all, because it doesn\'t matter what about,
anything will do, why not! thinking is fun, just living the fantasy that we
forgot to live, the fantasies that engulped us when we were children, make a
peace out of the for...'