I'm trying to use a second legacy database with my application.
I've tried to follow documentation on this link:
http://turbogears.org/2.1/docs/main/MultipleDatabases.html#using-multiple-databases-in-turbogears

I think that document is old, at the en of that document, there are instructions to modify myapp/websetup.py but there is no websetup.py in tg2, websetup is different, so I'm stuck there.

is there a complete example project or tutorial that I can follow?


here is the output of paster setup-app command:
-------------------
Traceback (most recent call last):
  File "/home/tkizilay/tg2env/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.4.2', 'console_scripts', 'paster')()
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/appinstall.py", line 68, in run
    return super(AbstractInstallCommand, self).run(new_args)
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 238, in run
    result = self.command()
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/appinstall.py", line 456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/appinstall.py", line 598, in setup_config
    mod.setup_app, command, filename, section, vars)
File "/home/tkizilay/tg2env/lib/python2.7/site-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/appinstall.py", line 614, in _call_setup_app
    func(command, conf, vars)
File "/home/tkizilay/tg2env/intranet/intranet/websetup/__init__.py", line 18, in setup_app
    setup_schema(command, conf, vars)
File "/home/tkizilay/tg2env/intranet/intranet/websetup/schema.py", line 29, in setup_schema main(argv=['version_control'], url=config['sqlalchemy.url'], repository='migration', name='migration') File "/home/tkizilay/tg2env/lib/python2.7/site-packages/TurboGears2-2.1.4-py2.7.egg/tg/configuration.py", line 59, in __getitem__
    return  self.config_proxy.current_conf()[key]
KeyError: 'sqlalchemy.url'

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to