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

The lino_xl.lib.songs plugin

Adds database models and functionality to manage songs.

This document assumes you have read The songs plugin.

This page contains code snippets (lines starting with >>>), which are being tested during our development workflow. The following snippet initializes the demo project used throughout this page.

>>> import lino
>>> lino.startup('lino_book.projects.noi2.settings')
>>> from django.utils import translation
>>> from lino.api.doctest import *
>>> from django.db.models import Q

Demo data

The plugin adds some songs as demo data in order to demonstrate what it can do.

>>> rt.show('songs.Songs')
==== ====================================== ========== ===========
 ID   Title                                  Language   Source
---- -------------------------------------- ---------- -----------
 1    Ligidal on Jumal                       Estonian   KLPR
 2    Kes Jumalat nii laseb teha             Estonian   KLPR
 3    Wer nur den lieben Gott lässt walten   German     Gotteslob
==== ====================================== ========== ===========

Reference

class lino_xl.lib.songs.Song

Django model used to represent a song.