On Mon, May 23, 2011 at 3:44 AM, Wichert Akkerman <wich...@wiggy.net> wrote:
> On 5/23/11 12:23 , neurino wrote:
>>
>>  > Creating tables and adding initial content is better done with paster
>> setup-app or another separate command.
>>
>> But setup-app is not present in pyramid.
>
> setup-app is a PasteDeploy thing. You can use it with pyramid apps if you
> want to, but I would recommend using a paster command approach instead: much
> simpler and does not suffer from the many problems setup-app has.

Akhet has a stub script for initializing the database
(myapp.scripts.create_db). This replaces "paster setup-app". You can
either use this, make a Paster command, or use setup-app.

I wouldn't recommend setup-app though because it has a lot of old
questionable code, and the main features it provides are for writing
files, not initializing databases. So a lot of your work will be
working around features you don't need.

-- 
Mike Orr <sluggos...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to