Re: [pylons-discuss] Re: Pyramid models - can't understand the logic - noob

2014-09-25 Thread Jonathan Vanasco
On Thursday, September 25, 2014 1:21:33 PM UTC-4, tonthon wrote: > > 1- Use something like sqlautocode to dynamically build models regarding > your existing database structure > 2- Migrate tables to fit your declared models > 3- Delete your tables > > You'll use 1 and 2 if you'd like to keep

Re: [pylons-discuss] Re: Pyramid models - can't understand the logic - noob

2014-09-25 Thread tonthon
Le 25/09/2014 18:53, Rosciuc Bogdan a écrit : > It looks like I have to use the initialize_db script since the whole > project is written from scratch. > > So let me see if I got this right. > > 1) I create the database Metadata by using SqlAlchemy's declarative > model. At this moment I might not

[pylons-discuss] Re: Pyramid models - can't understand the logic - noob

2014-09-25 Thread Rosciuc Bogdan
It looks like I have to use the initialize_db script since the whole project is written from scratch. So let me see if I got this right. 1) I create the database Metadata by using SqlAlchemy's declarative model. At this moment I might not have an already existing database 2) I connect this Meta

[pylons-discuss] Re: Pyramid models - can't understand the logic - noob

2014-09-24 Thread Jonathan Vanasco
most of these questions are more SqlAlchemy oriented, not about pyramid. the initialize_db stuff is only needed when you're creating a database from scratch. many people don't do that. there are a handful of SqlAlchemy oriented projects on PyPi that will build a "declarative" based models.py f