On 3/27/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
> # load configuration
> if len(sys.argv) > 1:
>     turbogears.update_config(configfile=sys.argv[1],
>         modulename="bookswap.config.app")
> elif os.path.exists(os.path.join(os.path.dirname(__file__),
> "setup.py")):
>     turbogears.update_config(configfile="dev.cfg",
>         modulename="bookswap.config.app")
> else:
>     turbogears.update_config(configfile="prod.cfg",
>         modulename="bookswap.config.app")

That looks good to me.

You might try adding some logging to turbogears/config.py to see if
it's actually loading up your app.cfg file. If you're not getting an
error in config loading, then it would seem like your config is fine.

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to