Forums

Unable to start turbogears application (NoSectionError)

sticks hands up into the sky and calls upon the universe

I've followed most instructions aimed at getting a tg2 application running on a wsgi compliant server. For the most part, this little chunk of code seems to be the magic thing

APP_CONFIG = /var/www/app1/production.ini
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)

but I get an error. A NoSectionError. It says No section: 'formatters'

puts down hands

I'm relatively new to getting my own code running on someone elses server. Most times I would just work on an existing code base and the magical git machines would put my code in the right pigeonhole. I suspect the callable that loadapp returns is not playing nice...

plz halp. I gief all informations pertaining to the code what you asks for.

NoSectionError sounds like you're missing something from your config file.