I'll also point out that the create_db script should probably be initialized
with your app's name instead of SimpleDemo in the line:
app = get_app(ini_file, "SimpleDemo")
Thanks for the replies!
Michael
On Thu, Jan 27, 2011 at 11:06 PM, Mike Orr <[email protected]> wrote:
> On Thu, Jan 27, 2011 at 6:06 PM, Michael Merickel <[email protected]>
> wrote:
> > Is there a reason that a pyramid_sqla template does not add
> 'pyramid_sqla'
> > as a dependency of the generated project, considering that the project is
> > doing imports from the pyramid_sqla package?
>
> Oh, that makes sense. It never came up during development because
> oyramid_sqla was already installed in order to create the application.
> Done.
>
> > Also, is there a reason that the template creates websetup.py as well as
> scripts/create_db.py?
>
> Removed websetup.py. I was going back and forth on which one to keep,
> but console scripts are more flexible than websetup.py (you can pass
> arguments to them and have mutliple scripts). Also, most of websetup's
> superclass code is for making files, which is irrelevant if you're
> just creating database tables.
>
> --
> Mike Orr <[email protected]>
>
> --
> 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]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
--
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.