*Thanks Very much* @Michael Merickel it has actually worked very fine. 

On Thursday, November 13, 2014 9:57:12 PM UTC+3, Michael Merickel wrote:
>
> The issue is that get_appsettings() will default to the "main" app of 
> your ini file. In your case you have named your app "music" as 
> signified by the "[app:music]" section. In this case you must tell 
> initializedb to look there for the settings. 
>
> env/bin/initializedb development.ini#music 
>
> On Thu, Nov 13, 2014 at 9:28 AM, Rurangwa Moses <[email protected] 
> <javascript:>> wrote: 
> > Hey Mike, Thanks for your reply but how exactly do i go about this to 
> fully 
> > recover from the error??? 
> > 
> > On Thursday, November 13, 2014 6:22:15 PM UTC+3, Mike Orr wrote: 
> >> 
> >> Yes, SQLAlchemy requires a 'sqlalchemy.url' key in the 'settings' dict 
> >>  when called in the way you did, and the error message is cryptic. 
> >> 
> >> On Thu, Nov 13, 2014 at 7:15 AM, Rurangwa Moses <[email protected]> 
> wrote: 
> >> > Line 41 shown up is where the error seems to coming from..... 
> >> > 
> >> > 
> >> > On Thursday, November 13, 2014 2:43:27 PM UTC+3, Rurangwa Moses 
> wrote: 
> >> >> 
> >> >> This is how my error message looks like..... 
> >> >>   load_entry_point('beatstore==0.0', 'console_scripts', 
> >> >> 'initialize_beatstore_db')() 
> >> >>   File 
> >> >> 
> >> >> 
> "/home/twir/Desktop/Pyramid-Apps/Final/Store/Store/scripts/initializedb.py", 
>
> >> >> line 41, in main 
> >> >>     engine = engine_from_config(settings, 'sqlalchemy.') 
> >> >> 
> >> >> Here is my initializedb.py 
> >> >>     options = parse_vars(argv[2:]) 
> >> >>     setup_logging(config_uri) 
> >> >>     settings = get_appsettings(config_uri, options=options) 
> >> >>     engine = engine_from_config(settings, 
> >> >> 
> >> >> 
> 'sqlalchemy.')..........................................................line 
>
> >> >> 41 
> >> >>     DBSession.configure(bind=engine) 
> >> >>     Base.metadata.create_all(engine) 
> >> >> 
> >> >> Hope you guys help ASAP.. 
> >> >> Thanks 
> >> >> Moses R. 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups 
> >> > "pylons-discuss" group. 
> >> > To unsubscribe from this group and stop receiving emails from it, 
> send 
> >> > an 
> >> > email to [email protected]. 
> >> > To post to this group, send email to [email protected]. 
> >> > Visit this group at http://groups.google.com/group/pylons-discuss. 
> >> > For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> 
> >> 
> >> -- 
> >> Mike Orr <[email protected]> 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "pylons-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/pylons-discuss. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to