turbogears

Django, Turbo Gears, Web2Py, which is better for what?

痴心易碎 提交于 2019-11-30 11:27:56
问题 I got a project in mind that makes it worth to finally take the plunge into programming. After reading a lot of stuff, here and elsewhere, I'm set on making Python the one I learn for now, over C# or java. What convinced me the most was actually Paul Graham's excursions on programming languages and Lisp, though Arc is in the experimental stage, which wouldn't help me do this web app right now. As for web app fast, I've checked out Django, Turbo Gears and Py2Web. In spite of spending a lot of

Django, Turbo Gears, Web2Py, which is better for what?

我只是一个虾纸丫 提交于 2019-11-30 01:05:10
I got a project in mind that makes it worth to finally take the plunge into programming. After reading a lot of stuff, here and elsewhere, I'm set on making Python the one I learn for now, over C# or java. What convinced me the most was actually Paul Graham's excursions on programming languages and Lisp, though Arc is in the experimental stage, which wouldn't help me do this web app right now. As for web app fast, I've checked out Django, Turbo Gears and Py2Web. In spite of spending a lot of time reading, I still have no clue which one I should use. 1) Django certainly has the nicest online

SQLAlchemy declarative: defining triggers and indexes (Postgres 9)

非 Y 不嫁゛ 提交于 2019-11-28 18:19:32
Is there a way in the SQLAlchemy class of a table to define/create triggers and indexes for that table? For instance if i had a basic table like ... class Customer(DeclarativeBase): __tablename__ = 'customers' customer_id = Column(Integer, primary_key=True,autoincrement=True) customer_code = Column(Unicode(15),unique=True) customer_name = Column(Unicode(100)) search_vector = Column(tsvector) ## *Not sure how do this yet either in sqlalchemy*. I now want to create a trigger to update "search_vector" CREATE TRIGGER customers_search_vector_update BEFORE INSERT OR UPDATE ON customers FOR EACH ROW

SQLAlchemy declarative: defining triggers and indexes (Postgres 9)

折月煮酒 提交于 2019-11-27 11:13:12
问题 Is there a way in the SQLAlchemy class of a table to define/create triggers and indexes for that table? For instance if i had a basic table like ... class Customer(DeclarativeBase): __tablename__ = 'customers' customer_id = Column(Integer, primary_key=True,autoincrement=True) customer_code = Column(Unicode(15),unique=True) customer_name = Column(Unicode(100)) search_vector = Column(tsvector) ## *Not sure how do this yet either in sqlalchemy*. I now want to create a trigger to update "search

Django vs other Python web frameworks?

拟墨画扇 提交于 2019-11-27 10:23:29
I've pretty much tried every Python web framework that exists, and it took me a long time to realize there wasn't a silver bullet framework, each had its own advantages and disadvantages. I started out with Snakelets and heartily enjoyed being able to control almost everything at a lower level without much fuss, but then I discovered TurboGears and I have been using it (1.x) ever since. Tools like Catwalk and the web console are invaluable to me. But with TurboGears 2 coming out which brings WSGI support, and after reading up on the religious debates between the Django and WSGI camps, I'm