Reputation: 20567
I'm trying to access the Pylons configuration from inside a repoze.who "authenticator".. I'm using from pylons import config
, but it looks like it returns a configuration with default values, not the ones from production.ini.. What am I missing?
Upvotes: 0
Views: 188
Reputation: 20567
Found a thread that suggests two options:
pylons.config.update(config)
at the bottom of load_environment
Upvotes: 0
Reputation: 3121
You must using pylons.config
after calling load_environment(global_conf, app_conf)
in config/middleware.py
or use direct app_conf
Upvotes: 0