Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 pros and cons compared to Django.

like image 313
Vasil Avatar asked Mar 12 '09 23:03

Vasil


People also ask

What is one of the major drawbacks of Django?

One of the main disadvantages or cons of using Django for web app development is it presents a steep and deep learning curve to budding and novice developers and designers. Even though it is a clear and simple framework developed using python language. It can make things difficult to learn for inexperienced developers.

Is Django the best framework?

Django offers a highly secure approach to develop web applications as it prevents attacks like XSS(Cross-Site Scripting), CSRF (Cross-Site Request Forgery), SQL injection, etc.


1 Answers

TG2 has several advantages that I think are important:

  • Multi-database support
  • sharding/data partitioning support
  • longstanding support for aggregates, multi-column primary keys
  • a transaction system that handles multi-database transactions for you
  • an admin system that works with all of the above
  • out of the box support for reusable template snipits
  • an easy method for creating reusable template tag-libraries
  • more flexibility in using non-standard components

There are more, but I think it's also important to know that Django has some advantages over TG2:

  • Larger, community, more active IRC channel
  • more re-usable app-components
  • a bit more developed documentation

All of this means that it's a bit easier to get started in Django than TG2, but I personally think the added power and flexibility that you get is worth it. But your needs may always be different.

like image 117
Mark Ramm Avatar answered Sep 30 '22 02:09

Mark Ramm