Settings

Settings can be live analyzed by using the Lona Shell command %lona_settings.

Threads

MAX_WORKER_THREADS = 
4
MAX_STATIC_THREADS = 
4
MAX_RUNTIME_THREADS = 
6

Routing

ROUTING_TABLE = 
'lona.default_routes.routes'
ROUTING_RESOLVE_CACHE_MAX_SIZE = 
1000

Lona uses a functools.lru_cache to cache resolving requests. This setting configures the max size of this cache.

ROUTING_REVERSE_CACHE_MAX_SIZE = 
1000

Lona uses a functools.lru_cache to cache reverse resolving requests. This setting configures the max size of this cache.

Templating

TEMPLATE_DIRS = 
[]
FRONTEND_TEMPLATE = 
'lona/frontend.html'
ERROR_403_TEMPLATE = 
'lona/403.html'
ERROR_404_TEMPLATE = 
'lona/404.html'
ERROR_500_TEMPLATE = 
'lona/500.html'
TEMPLATE_EXTRA_CONTEXT = 
{}

Static Files

STATIC_DIRS = 
[]
STATIC_URL_PREFIX = 
'/static/'
STATIC_FILES_SERVE = 
True
STATIC_FILES_STYLE_TAGS_TEMPLATE = 
'lona/style_tags.html'
STATIC_FILES_SCRIPT_TAGS_TEMPLATE = 
'lona/script_tags.html'
STATIC_FILES_ENABLED = 
[]
STATIC_FILES_DISABLED = 
[]
STATIC_FILES_CLIENT_URL = 
'/lona/lona.js'

Client

CLIENT_RECOMPILE = 
False
CLIENT_VIEW_START_TIMEOUT = 
2
CLIENT_INPUT_EVENT_TIMEOUT = 
2
CLIENT_PING_INTERVAL = 
60

Note

Added in 1.7.4

To disable ping messages set to 0.

Sessions

SESSIONS = 
True
SESSIONS_KEY_GENERATOR = 
'lona.middlewares.sessions.generate_session_key'
SESSIONS_KEY_NAME = 
'sessionid'
SESSIONS_KEY_RANDOM_LENGTH = 
28

Views

FRONTEND_VIEW = 
''

Error Views

ERROR_403_VIEW = 
''
ERROR_404_VIEW = 
''
ERROR_500_VIEW = 
''

Middlewares

MIDDLEWARES = 
[]

Shell

COMMANDS = 
[]

Testing

TEST_VIEW_START_TIMEOUT = 
False
TEST_INPUT_EVENT_TIMEOUT = 
False