Questions tagged [turbogears]

TurboGears, another open source MVC-style Web application framework based on Python.

It is made up of several pre-existing sub-projects glued together,

  • CherryPy: Base Web framework
  • MochKit: JavaScript library
  • Kid: Templating language
  • SQLObject: Object-relational mapper (ORM)
111 questions
60
votes
13 answers

Django vs other Python web frameworks?

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…
miniman
  • 1,787
  • 4
  • 14
  • 11
27
votes
1 answer

SQLAlchemy declarative: defining triggers and indexes (Postgres 9)

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,…
Ominus
  • 4,571
  • 6
  • 33
  • 43
20
votes
7 answers

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

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…
Tsais
  • 301
  • 1
  • 3
  • 7
12
votes
7 answers

Turbogears 2 vs Django - any advice on choosing replacement for Turbogears 1?

I have been using Turbogears 1 for prototyping small sites for the last couple of years and it is getting a little long in the tooth. Any suggestions on making the call between upgrading to Turbogears 2 or switching to something like Django? I'm…
michela
  • 428
  • 1
  • 7
  • 18
10
votes
5 answers

Python Webframework Confusion

Could someone please explain to me how the current python webframworks fit together? The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't…
Vaer
7
votes
8 answers

Can anyone point out the pros and cons of TG2 over Django?

Django is my favorite python web framework. I've tried out others like pylons, web2py, nevow and others. But I've never looked into TurboGears with much enthusiasm. Now with TG2 out of beta I may give it a try. I'd like to know what are some of the…
Vasil
  • 32,548
  • 26
  • 84
  • 113
7
votes
4 answers

Good interview questions for a Python/TurboGears web developer?

If you were looking to hire a web developer who would primarily be working with TurboGears/Python - what sort of questions should you ask them?
Ryan Montgomery
  • 14,270
  • 16
  • 53
  • 63
7
votes
3 answers

Pip freeze gives me this error related with git

I am working with python and git on a simple Turbogears2 project that I've built just for fun. In a certain moment I want to deploy it to Heroku, so I do the usual pip freeze > requirements.txt and I get this error: Error when trying to get…
Xar
  • 5,913
  • 12
  • 47
  • 67
6
votes
2 answers

Python web framework with CRUD powered by AJAX

I am looking for a Python web framework which will allow me to rapidly build a CRUD application with automatic AJAX support. The framework should be able to generate a nice table which is sortable and filterable, which works via AJAX and without JS…
denysonique
  • 14,089
  • 6
  • 34
  • 39
5
votes
2 answers

Turbomail Integration with Pyramid

I am in need of a method to send an email from a Pyramid application. I know of pyramid_mailer, but it seems to have a fairly limited message class. I don't understand if it's possible to write the messages from pyramid_mailer using templates to…
h0st1le
  • 98
  • 6
4
votes
1 answer

Can Core Data be used on Linux?

This might be a stupid question, but I was wondering whether or not you can use the Core Data libraries on Linux at all? I'm planning how to build the server side of an iPhone app that I'm working on, and have found that you can use PyObjC to get…
glenc
  • 2,992
  • 2
  • 23
  • 39
4
votes
1 answer

How to extend the Turbogears 2.1 login functionality

I'm using Turbogears 2.1 and repoze.who/what and am having trouble figuring out how to extend the basic authentication functionality. I am essentially attempting to require users to activate their account via an emailed link before they can login.…
Marc
  • 3,634
  • 7
  • 33
  • 58
4
votes
1 answer

How to use custom sys.excepthook in RootController in TurboGears 2.2.2

I want in my TB app to log all exceptions to a log file. So, I tried to use custom sys.excepthook as usual. But every exception is still raised and nothing is logged. Here is my code: class RootController(BaseController): secc =…
nu.frix
  • 173
  • 1
  • 6
4
votes
2 answers

Turbogears 2 Tutorials?

Anyone know of a good beginners tutorial for Turbogears 2? I'm particularly interested in one that would have some details on working with existing database schema rather than creating from scratch. (and some pointers on MS SQL server setup would…
matthew
  • 379
  • 1
  • 4
  • 10
3
votes
2 answers

Logging queries with sqlalchemy 0.6

With turbogears 2.1 and sqlalchemy 0.7 the queries from console were logged out to stdout. However I needed to downgred to 0.6 and they no longer appear. Documentation of logging seems to be identical and I couldn't find anything in changelog. How…
Maciej Piechotka
  • 6,571
  • 4
  • 35
  • 57
1
2 3 4 5 6 7 8