Welcome TurboGears 2.4

base_config = AppConfig()base_config.package = testapp
base_config.renderers = ['json', 'kajiki']
base_config['templating.kajiki.strip_text'] = False
base_config.default_renderer = 'kajiki'
base_config['session.enabled'] = True
base_config.prefer_toscawidgets2 = True
base_config['session.data_serializer'] = 'json'
base_config.use_sqlalchemy = True
base_config.sa_auth.cookie_secret = "SOME_SECRET"
base_config = FullStackApplicationConfigurator()

base_config.update_blueprint({
'package': testapp,
'tw2.enabled': True,
'renderers': ['json', 'kajiki'],
'default_renderer': 'kajiki',
'templating.kajiki.strip_text': False,
'session.enabled': True,
'session.data_serializer': 'json',
'use_sqlalchemy': True,
'sa_auth.cookie_secret': "SOME_SECRET",
})
class FullStackApplicationConfigurator(...):
def __init__(self):
super(FullStackApplicationConfigurator, self).__init__()
self.update_blueprint({
'use_dotted_templatenames': True
})
self.register(I18NConfigurationComponent)
self.register(SimpleAuthenticationConfigurationComponent)
self.register(SessionConfigurationComponent)
self.register(CachingConfigurationComponent)
[... more components here ...]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store