On Wed, May 2, 2012 at 1:15 AM, John Anderson <[email protected]> wrote:
>
> On Tue, May 1, 2012 at 10:42 PM, Lukasz Szybalski <[email protected]>
> wrote:
>>
>> Hello,
>> In pyramid I'm trying to initialize a database model but I'm getting this
>> error:
>>
>>
>>  initialize_myapp_db development.ini
>> Traceback (most recent call last):
>>  File "/home/lucas/tmp/pyramid/pyramid_env/bin/initialize_myapp_db",
>> line 9, in <module>
>>    load_entry_point('myapp==0.0', 'console_scripts',
>> 'initialize_myapp_db')()
>>  File "/home/lucas/tmp/pyramid/myapp/myapp/scripts/initializedb.py",
>> line 30, in main
>>    engine = engine_from_config(settings, 'sqlalchemy.')
>>  File
>> "/home/lucas/tmp/pyramid/pyramid_env/local/lib/python2.7/site-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/__init__.py",
>> line 344, in engine_from_config
>>    url = opts.pop('url')
>> KeyError: 'url'
>>
>>
>>
>> my development.ini has
>>
>> sqlalchemy.url = sqlite:///%(here)s/myapp.db
>>
>> Any idea what this issue might be?
>>
>> Thanks,
>> Lucas
>>
>
> Sounds like you might have configured a pipeline and renamed the app
> configuration to something other than main and now get_appsettings isn't
> pulling in the settings you need.
>
> Try passing in your new app name on the command line, i.e  populate.py
> ./development.ini#appname

You are correct.
In order to get toscawidget to work I needed to add PIPELINE at the
beginning of development.ini. (at least that is the only instructions
I found), as a result I needed to change the main app name to
something other then main.

I'll try the command above. Thank you.
Is there another way I can add toscawidget suppurt without renaming
the app name?

Thanks,
Lucas

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to