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

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

# Copyright 2013-2015 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

""" 

Default settings module for a :ref:`polly` project. 

""" 

 

from __future__ import unicode_literals 

 

from lino.projects.std.settings import * 

 

from django.utils.translation import ugettext_lazy as _ 

 

 

class Site(Site): 

 

    """ 

    Base class for a :ref:`polly` application, 

    designed to be instantiated into the :setting:`SITE` setting. 

    """ 

 

    verbose_name = "Lino Polly" 

    description = _("a Lino application to make surveys and polls.") 

    version = "0.1" 

    url = "http://www.lino-framework.org/examples/polly" 

    author = 'Luc Saffre' 

    author_email = 'luc.saffre@gmail.com' 

 

    demo_fixtures = 'std demo feedback demo2'.split() 

    user_profiles_module = 'lino.modlib.polls.roles' 

 

    languages = 'en de et' 

 

    def get_installed_apps(self): 

        yield super(Site, self).get_installed_apps() 

        yield 'lino.modlib.gfks' 

        # yield 'lino.modlib.system' 

        yield 'lino.modlib.users' 

        #~ yield 'lino.modlib.countries' 

        #~ yield 'lino_xl.lib.properties' 

        #~ yield 'lino.modlib.' + self.partners_app_label 

        #~ yield 'lino_xl.lib.households' 

        yield 'lino.modlib.polls' 

        #~ yield 'lino_xl.lib.pages' 

        #~ yield 'lino.projects.polly' 

        # yield 'lino_xl.lib.appypod'