from lino.apps.std.settings import *

class Lino(Lino):
  
    title = "Lino Tutorial"
    
    def setup_menu(self,ui,user,main):
        m = main.add_menu("polls","~Polls")
        m.add_action('polls.Polls')
        
        m = main.add_menu("config","~Configure")
        m.add_action('users.Users')
        
    
    
LINO = Lino(__file__,globals()) 

DEBUG = True

#~ MIDDLEWARE_CLASSES = [
    #~ 'lino.utils.simulate_remote.SimulateRemoteUserMiddleware',
#~ ] + MIDDLEWARE_CLASSES 


#~ LANGUAGES = language_choices('de','fr','en')
#~ LANGUAGE_CODE = 'en-us'

#~ LOGGING = dict(filename=join(LINO.project_dir,'log','system.log'),level='DEBUG')
#~ LOGGING = dict(filename=None,level='INFO')

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', 
        'NAME': abspath(join(
            dirname(__file__),'..','..','..','tmp','t1.db')),
    }
}

INSTALLED_APPS = (
  'django.contrib.contenttypes',
  'lino.modlib.users',
  'lino',
  'lino.tutorials.t1b.polls'
)




