Pylons can't see my config dictionary -


Update: Understand this: I was loading config options in config.ini, then config.ini is running. DUH!


I am installing an existing project in Pilanes and I am trying to tell about my local configuration options.

  Pastor makeconfig My_app production.ini has run and edited the  production.ini  file in the options which I call the  solr.url  I want to do this with entry, however, if I again serve 

  pster - reload config.ini  

The file is found:

  file "/lib/solrhelp.py", in line 12, the solr_connection solr_url = config ['solr.url'] file "/lib/python2.6/site- Packages / Paste-1.7.4-py2.6.egg / Paste / registry.py ", line 146, __getitem__ in return self._current_obj () [key] KeyError: 'solr.url'  

The file is solrhelp.py:

It looks like pylons 'can not see configured' Solr Dictionary with entry for url

Open the python and do

  & gt; & Gt; & Gt; Import config from pylons & gt; & Gt; & Gt; Print config {'pylons.c_attach_args': correct, 'buffet.template_options': {}, 'pylons.request_options': {'errors': 'substitution', 'decode_perm_name': wrong, 'charset': 'utf-8' 'Language': 'n-ham'}, 'pylon.path': {'controller': none, 'template': [], 'static_files': none,' root ': none},' pylons .environment_config ': {' session ':' beaker.session ',' cache ':' beaker.cache '},' pylons.db_engines': {}, 'pylons.strict_c': false, 'pylons.h': someone No, 'pylons' packet: none,' debug ': wrong,' pylons.g ': none,' buffet.template_engines': [], 'pylons.response_options': {' headers': {'Pragma ':' No-cache ',' cache-control ':' no-cache '},' Errors: 'Strict', 'charset': 'utf-8', 'content_type': 'text / html'}}  

No entry appears in this product. INI

How can I tell the pilones about the entries in production.ini?


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -