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

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

# -*- coding: UTF-8 -*- 

# Copyright 2015 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

""" 

.. autosummary:: 

   :toctree: 

 

   models 

   management.commands 

 

""" 

from __future__ import print_function 

 

# from lino.api.ad import Plugin, _ 

 

 

# class Plugin(Plugin): 

 

#     ui_label = _("Lino") 

 

#     # media_name = 'lino' 

 

from lino import AFTER17, site_startup 

 

if AFTER17: 

 

    from django.apps import AppConfig 

 

    class LinoConfig(AppConfig): 

        name = 'lino.modlib.lino_startup' 

 

        # def __init__(self): 

        #     # raise Exception("20150820") 

        #     super(LinoConfig, self).__init__() 

        #     startup() 

 

        def ready(self): 

            # raise Exception("20150820") 

            # print "20151010 LinoConfig.ready() gonna call Site.startup" 

            try: 

                site_startup() 

            except Exception as e: 

                print(e) 

                raise 

 

    default_app_config = 'lino.modlib.lino_startup.LinoConfig'