Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

from lino.projects.std.settings import * 

#~ from lino_local import LocalLinoMixin 

 

 

class Site(Site): 

 

    title = "Babel Tutorial" 

 

    #~ languages = ['en'] 

    #~ languages = ['de', 'fr'] 

    languages = ['en', 'fr'] 

 

    def get_installed_apps(self): 

        yield super(Site, self).get_installed_apps() 

        yield 'lino.modlib.system' 

        yield 'lino.projects.babel_tutorial' 

 

    def setup_menu(self, profile, main): 

        m = main.add_menu("products", "Products") 

        m.add_action(self.modules.babel_tutorial.Products) 

 

SITE = Site(globals()) 

 

DEBUG = True 

 

# The DATABASES setting is the only thing you should take 

# over from your original file: 

#~ DATABASES = { 

    #~ 'default': { 

        #~ 'ENGINE': 'django.db.backends.sqlite3', 

        #~ 'NAME': abspath(join(dirname(__file__),'test.db')) 

    #~ } 

#~ }