Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
TurboGears vs Django
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jo  
View profile  
 More options Jul 29 2006, 3:00 am
From: "jo" <j...@sferacarta.com>
Date: Sat, 29 Jul 2006 00:00:51 -0700
Local: Sat, Jul 29 2006 3:00 am
Subject: TurboGears vs Django
Hi all,

I'm evaluating the possibility to use TurboGears for a project, but I
have read so many comments about Django vs TurboGears and right now I
am very confused.
I installed both of them in my system and sincerelly I found that
Django is very easy to install and getting started while TG is not so
easy.

Nevertheless I hesitate to trust on the Django semplicity against the
TG complexity and I'm trying to examinate some characteristics in both
of them that interest to me.

Django gives you an admin environment for free while TG doesn't have
such thing and I have no idea how to create it.
TG applys the pattern MVC while Django does it in a strange way.
Django doesn't use AJAX while TG uses Mochikit and JASON.
Django is very compact while TG is assembled with many moduls to put
together.

Someone of you could give me a good reason to use TG instead of Django?

Thank you,
jo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elver Loho  
View profile  
 More options Jul 29 2006, 2:57 pm
From: "Elver Loho" <elver.l...@gmail.com>
Date: Sat, 29 Jul 2006 21:57:42 +0300
Local: Sat, Jul 29 2006 2:57 pm
Subject: Re: [TurboGears] TurboGears vs Django
On 7/29/06, jo <j...@sferacarta.com> wrote:

> Someone of you could give me a good reason to use TG instead of Django?

As I said on the Django list... Take a weekend off, build something
with both, see what you like better :)

Elver


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Singleton  
View profile  
 More options Jul 30 2006, 2:17 am
From: "Ed Singleton" <singleto...@gmail.com>
Date: Sun, 30 Jul 2006 07:17:31 +0100
Local: Sun, Jul 30 2006 2:17 am
Subject: Re: [TurboGears] TurboGears vs Django
I think the main difference is learning curves.

Django is easy to get started in, and good for quick easy projects,
but not so good for large complex projects.

Turbogears is more difficult to get started in, but handles large
complex projects better.

It's much the same difference for SQLObject and SQLAlchemy, once your using TG.

So if you're doing something very simple and just want to get it done,
use Django.  If it might become more complex, us TurboGears.

Ed

On 7/29/06, jo <j...@sferacarta.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gasolin  
View profile  
 More options Jul 30 2006, 2:45 am
From: "gasolin" <gaso...@gmail.com>
Date: Sat, 29 Jul 2006 23:45:36 -0700
Local: Sun, Jul 30 2006 2:45 am
Subject: Re: TurboGears vs Django
jo:

We don't know what's your background and purpose of your project.
So a bias suggestion may not fit your need.

You can follow Ian Mouer's IBM article for both django and turbogears.
He give's a good Conclusion for comparing TurboGears and Django

http://www-128.ibm.com/developerworks/linux/library/l-turbogears/#N10402

BTW: If you want to make an AJAX-enabled site, TurboGears is a good
choice.

--
fred


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Kaplan-Moss  
View profile  
 More options Jul 30 2006, 2:50 pm
From: "Jacob Kaplan-Moss" <ja...@jacobian.org>
Date: Sun, 30 Jul 2006 11:50:14 -0700
Local: Sun, Jul 30 2006 2:50 pm
Subject: Re: TurboGears vs Django

> Django is easy to get started in, and good for quick easy projects,
> but not so good for large complex projects.

Now, I'm obviously biased (I'm one of the lead developers of Django),
so I I'm going to stay away from the "which should I use" question.
However, this blanket statement that Django isn't good for "large
complex projects" is a very unfair characterization.

There are *plently* of "large complex projects" that use Django; the
one I'm most familier with is Ellington, the commercial CMS that Django
was extracted from.  Sloccount reports that it's around 50k lines of
Python code in around 1k files, and I can tell you right now Django
suits it just fine :)  I could name any other of other large projects,
but I won't bore anyone.

Point is, the best way to figure out which of these (or any!) tools
suit you is to download 'em and play around.  Free Software rocks that
way :)  Oh, and if you're a VMware user, a great way to get started
playing around is to download the Python Web Developer VM
(http://www.vmware.com/vmtn/appliances/directory/289); it's got just
about every Python web toolkit pre-installed, and it's super fun for
messing around with.

The point is that sweaping generalizations without any facts or
specifics to back 'em up aren't worth the (virtual) paper they're
printed on.  Trust your own judgement.

Jacob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Singleton  
View profile  
 More options Jul 30 2006, 3:51 pm
From: "Ed Singleton" <singleto...@gmail.com>
Date: Sun, 30 Jul 2006 20:51:21 +0100
Local: Sun, Jul 30 2006 3:51 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django
To be fair I didn't say that Django isn't good for large projects, I
said that I think it isn't as good as TurboGears.

I wholeheartedly think it's the second best web development framework
for large complex sites (Rails is good too), which is saying a lot.

Emphasis there on "I" and "think".

Sweeping generalisations are often quite useful.  Django is very good
and you won't discover it's flaws until you've been using it a long
time.  A quick play around with it won't tell you anything about it.
(same with TG).

To go back to the comparison with SQLObject and SQLAlchemy.  Once is
very easy to get started in, and amazing for the small problems.  The
other is quite hard to get started in, but good for complex problems.
That's not to say one is better than the other.  I think that's fairly
accepted opinion and most people on this list would agree (I think
even Ian Bicking would agree).  It's very useful information to people
who are getting started.  If your site is going to be simple, use
SQLObject, otherwise it might be worth putting the considerable effort
into learning SQLAlchemy.

To clarify that I wasn't being excessively biased, I should point out
that I did recommend he should use Django unless he was going to do
something complex.  That's the same advice I give to anyone who asks
me (sometimes I don't mention TG as an option if I'm sure they're not
right for it).

I love TurboGears but I don't think it is entirely suited to
beginners, particularly people without programming experience.
Whereas I think Django is (or at least is more so than anything else).

Ed

On 7/30/06, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ramm  
View profile  
 More options Jul 30 2006, 5:33 pm
From: "Mark Ramm" <mark.mchristen...@gmail.com>
Date: Sun, 30 Jul 2006 17:33:29 -0400
Local: Sun, Jul 30 2006 5:33 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

> > Django is easy to get started in, and good for quick easy projects,
> > but not so good for large complex projects.

> Now, I'm obviously biased (I'm one of the lead developers of Django),
> so I I'm going to stay away from the "which should I use" question.
> However, this blanket statement that Django isn't good for "large
> complex projects" is a very unfair characterization.

Jacob is right about this, it's not the size of the project, or it's
complexity that makes the difference here.

It's the kind of complexity you have.

* If there's the right kind of complexity SQLAlchemy is going to be a
huge win over Django's ORM.

* If there's the right kind of complexity Kit's match templates, and
the ability to create your own tag libraries is a huge win over Django
Templates.

* If you are working with complex legacy URL structures that don't fit
into CherryPy's object publishing paradigm the regex based URL -->
object mapper in Django is a huge win over TurboGears.

* If you are desiging sites where Django's admin interface gives you
what you need in a lot of places, that's a significant win over
TurboGears where you'll have to design your own administrative
interfaces.

Both systems reflect their heritage, Django as a CMS, and TurboGears
as the underlying framework of a cross platform application.
Django is more of a coherent whole, so it's easier to learn, but the
component parts of TurboGears have been around a long time and are
used in lots of different contexts so there's more flexibility
built-in to TurboGears.

The particular needs of your application are going to make a big
difference in which framework is best for you.   But the good news of
the Django/TurboGears debate is that both are reasonably mature, and
no matter which one you choose you should be able to build whatever
application you need to build.  Either way you're going to be more
productive, and create more maintainable code than you would have
without them.

That said, I've made the investment in learning TurboGears and I
personally find it a better fit for what I want to do, with more
powerful templates and a lot more database flexibility that Django.
So, I don't think I'll be making the switch any time soon.

If on the other hand I were putting together a high traffic online
news site, and having a powerful admin interface out of the box were
important to me, I might choose django.

--Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Larson  
View profile  
 More options Jul 30 2006, 7:57 pm
From: "Eric Larson" <ionr...@gmail.com>
Date: Sun, 30 Jul 2006 18:57:53 -0500
Local: Sun, Jul 30 2006 7:57 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

One small thing that made a big difference to me was the fact that
TurboGears uses rather common libraries. What this has meant for me is
reuse. I have many projects that will never even include a web interface or
involve any sort of javascript. In these cases, I am very happy I learned
about TurboGears because it let me understand great tools along with how to
effectively integrate them into different applications. I understand Django
is currently working on this as well which is great, but in my case,
learning TurboGears gave me the most knowledge so that was what I spent more
time learning. The result is I have a reasonably good understanding of
cherrypy, sqlobject, mochikit, kid, cheetah, buffet, cherrytemplate, paste,
etc. all because I went with TurboGears.

Just my two cents of course ;)

Eric

On 7/30/06, Mark Ramm <mark.mchristen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Jul 30 2006, 11:03 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Sun, 30 Jul 2006 23:03:21 -0400
Local: Sun, Jul 30 2006 11:03 pm
Subject: Re: [TurboGears] TurboGears vs Django

On 7/29/06, jo <j...@sferacarta.com> wrote:

> I installed both of them in my system and sincerelly I found that
> Django is very easy to install and getting started while TG is not so
> easy.

how hard it is to easy_install it, and then run quickstart ?

Django gives you an admin environment for free while TG doesn't have

> such thing and I have no idea how to create it.

The toolbox (since 0.9) gives some of those features.

TG applys the pattern MVC while Django does it in a strange way.

> Django doesn't use AJAX while TG uses Mochikit and JASON.

AJAX is not a  tool is a concept. so what you wanted to say is that TG uses
JSON instead of XML for AJAX, and the reason for that is that JSON is better
both in performance and simplicity.

Django is very compact while TG is assembled with many moduls to put

> together.

that's exactly the goal of both frameworks, while Django aims to build a
module for every need, TG goes out and takes the best module for certain
task and incorpates it. Just two diferent ways of doing the same thing.

Someone of you could give me a good reason to use TG instead of Django?

I have 2 if you don't like what the framework gives for X task don't use it
and incorporate your own, best example Javascript you can use anything
that's outthere and TG won't complain, a little less is the template which
can be added with a small plugin to create the entry point.

The second reason is that you don't have to go out and look at *all* the
tools for a task someone in TG has already done that. which is what is
happeing with SQLObject/SQLAlchemy, when TG was created SO was the best,
right now SA is getting better and ones it's great TG will be at SA, and new
people will know that SA is the best ORM in python :)

Thank you,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wektor  
View profile  
 More options Jul 31 2006, 5:46 am
From: "Wektor" <wektor...@gmail.com>
Date: Mon, 31 Jul 2006 02:46:10 -0700
Local: Mon, Jul 31 2006 5:46 am
Subject: Re: TurboGears vs Django
I worked for a while with Django and switched to TG because:
 * Django has a nasty ORM (very inconsistent api and error-prone)
 * had problems with Djangos regexp url mapping(it seems cool and
powerfull but it was difficult to get working correctly and TG mapping
is more straightforward and is as powerfull)
 * TG has much better support for user interaces -- Widgets
 * TG has better support for modularization ( TG is using setuptools
and Paste so you can use these in your app; another thing is that at
the moment there is a number of plugins to TG -- Widgets, Template
Languages and more comming  )

disclaimer: its my personal opinion, i did a core module for a big site
in Django, and i did a front end to a decission support system and am
working on a DB driven CMS with TurboGears


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Brunson  
View profile  
 More options Aug 1 2006, 2:58 pm
From: Eric Brunson <brun...@brunson.com>
Date: Tue, 01 Aug 2006 12:58:08 -0600
Local: Tues, Aug 1 2006 2:58 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

Fred,

Thanks for the pointer to the article.  I've been playing with TG, but
haven't used it for a production application yet.  I'm interested in the
list's take on this statement:

    However, the Django configuration system allows for maximum control
    and flexibility. Django URLs can be easily remapped onto an
    application after a major refactoring. This helps prevent "link rot"
    caused by old bookmarks or cached search engine results. "Link rot"
    severely hurts the traffic levels and usability of content-based Web
    sites that Django was designed to create.

Can't turbogears provide default handler that could be used to intercept
"bad" or "old" links and redirect them into a newer or refactored hierarchy?

Thanks,
e.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Rojas  
View profile  
 More options Aug 1 2006, 3:14 pm
From: "Javier Rojas" <jeroja...@gmail.com>
Date: Tue, 1 Aug 2006 14:14:14 -0500
Local: Tues, Aug 1 2006 3:14 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

> Can't turbogears provide default handler that could be used to intercept
> "bad" or "old" links and redirect them into a newer or refactored
> hierarchy?

yes,  when  some link fails, tg searchs for a  controller named "default",
and passes as arguments all the elements of the URL

Thanks,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anders pearson  
View profile  
 More options Aug 1 2006, 3:43 pm
From: anders pearson <and...@columbia.edu>
Date: Tue, 1 Aug 2006 15:43:54 -0400
Local: Tues, Aug 1 2006 3:43 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

On 2006-08-01 12:58:08 -0600, Eric Brunson wrote:

Yes. There's also Routes:

     http://routes.groovie.org/

which is a port of the Rails routes system that lets you do all the
fancy mapping to support arbitrary URL schemes. Integrating it with TG
is pretty easy.

I've used Routes a bit and I love it for supporting legacy url
schemes. However, the tradeoff is that it (and Django's regexp based
mapping) is very complicated and difficult to debug. If I don't have
to deal with legacy URLs, I'll go for the simple cherrypy approach
every time. The recent addition of positional parameter support in
TG has made it easy to support all but the most convoluted URL
structures now without introducing the complexity and confusion of
mapping.

--
anders pearson : http://www.columbia.edu/~anders/
   C C N M T L : http://www.ccnmtl.columbia.edu/
        weblog : http://thraxil.org/

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Horn  
View profile  
 More options Aug 1 2006, 5:02 pm
From: "Kevin Horn" <kevin.h...@gmail.com>
Date: Tue, 1 Aug 2006 16:02:33 -0500
Local: Tues, Aug 1 2006 5:02 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

Can anyone point to an example of how the positional parameter support
actually ended up working?  I couldn't find anything on the wiki or through
Google, except for trac ticket #73...which isn't very clear.

Thx

Kevin H

On 8/1/06, anders pearson <and...@columbia.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yves-Eric Martin  
View profile  
 More options Aug 1 2006, 11:05 pm
From: "Yves-Eric Martin" <yemar...@gmail.com>
Date: Tue, 01 Aug 2006 20:05:57 -0700
Local: Tues, Aug 1 2006 11:05 pm
Subject: Re: TurboGears vs Django

Kevin Horn wrote:
> Can anyone point to an example of how the positional parameter support
> actually ended up working?  I couldn't find anything on the wiki or through
> Google, except for trac ticket #73...which isn't very clear.

On a quickstarted project:

---8<--- snip ---8<--- snip ---8<--- snip ---8<--- snip ---8<---

class Root(controllers.RootController):
    @expose(template="agt.templates.welcome")
    def index(self):
        import time
        log.debug("Happy TurboGears Controller Responding For Duty")
        return dict(now=time.ctime())

    class Obj(controllers.Controller):

        class SubObj(controllers.Controller):

            @classmethod
            @expose()
            def method1(self, arg1, arg2, arg3):
                return "arg1: %s<br>arg2: %s<br>arg3: %s" % (arg1,
arg2, arg3)

            @classmethod
            @expose()
            def method2(self, *args, **kw):
                return "args: %s<br>kw: %s" % (args, kw)

---8<--- snip ---8<--- snip ---8<--- snip ---8<--- snip ---8<---

Then try to hit:

http://localhost:8080/Obj/SubObj/method1/arg1/arg2/arg3

http://localhost:8080/Obj/SubObj/method2/arg1/arg2/arg3?kw1=data1&kw2...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kaan  
View profile  
 More options Aug 2 2006, 11:37 am
From: "Kaan" <KublaCh...@gmail.com>
Date: Wed, 02 Aug 2006 08:37:04 -0700
Local: Wed, Aug 2 2006 11:37 am
Subject: Re: TurboGears vs Django

http://www.cherrypy.org/trunk/docs/book/html/index.html#id3516454

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Horn  
View profile  
 More options Aug 3 2006, 1:03 am
From: "Kevin Horn" <kevin.h...@gmail.com>
Date: Thu, 3 Aug 2006 00:03:36 -0500
Local: Thurs, Aug 3 2006 1:03 am
Subject: Re: [TurboGears] Re: TurboGears vs Django

Thanks all!

That's exactly what I was looking for.

Kevin H.

On 8/2/06, Kaan <KublaCh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jo  
View profile  
 More options Aug 4 2006, 5:18 am
From: "jo" <j...@fastwebnet.it>
Date: Fri, 04 Aug 2006 02:18:07 -0700
Local: Fri, Aug 4 2006 5:18 am
Subject: Re: TurboGears vs Django
If there is anybody interested to give professional support to a
softwarehouse in Bologna-Italy to start a project using TurboGears,
please
contact me at:
j...@fastwebnet.it

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Aug 4 2006, 9:19 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Fri, 4 Aug 2006 21:19:14 -0400
Local: Fri, Aug 4 2006 9:19 pm
Subject: Re: [TurboGears] Re: TurboGears vs Django

On 8/4/06, jo <j...@fastwebnet.it> wrote:
hi  Jo, I think you will probably get better responses if you post a new
thread.

If there is anybody interested to give professional support to a


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jsds  
View profile  
 More options Aug 5 2006, 4:45 am
From: jsds <j...@fastwebnet.it>
Date: Sat, 05 Aug 2006 10:45:03 +0200
Local: Sat, Aug 5 2006 4:45 am
Subject: Re: [TurboGears] Re: TurboGears vs Django

Jorge Vargas wrote:
> On 8/4/06, *jo* <j...@fastwebnet.it <mailto:j...@fastwebnet.it>> wrote:

> hi  Jo, I think you will probably get better responses if you post a
> new thread.

>     If there is anybody interested to give professional support to a
>     softwarehouse in Bologna-Italy to start a project using TurboGears,
>     please
>     contact me at:
>     j...@fastwebnet.it <mailto:j...@fastwebnet.it>

I already did that, it was a message in italian in a new topic titled
"Bologna - Italia" but the message wasn't sent to the list, I think
moderator remove it. :-(

jo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Off Topic: TurboGears in Italy" by jsds
jsds  
View profile  
 More options Aug 5 2006, 4:55 am
From: jsds <j...@fastwebnet.it>
Date: Sat, 05 Aug 2006 10:55:20 +0200
Local: Sat, Aug 5 2006 4:55 am
Subject: Off Topic: TurboGears in Italy
Hi all,

If there is anybody interested to give professional support to a
software house in Bologna-Italy to start a project using TurboGears,
please contact me at: j...@fastwebnet.it <mailto:j...@fastwebnet.it>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "TurboGears vs Django" by Elvelind Grandin
Elvelind Grandin  
View profile  
 More options Aug 5 2006, 5:00 am
From: "Elvelind Grandin" <elvel...@gmail.com>
Date: Sat, 5 Aug 2006 11:00:26 +0200
Local: Sat, Aug 5 2006 5:00 am
Subject: Re: [TurboGears] Re: TurboGears vs Django
I might have been me that removed it :/
I'm used to not allow non-english msg onto the ML, since they usually
is spam. It would be better if you wrote it in english.

On 8/5/06, jsds <j...@fastwebnet.it> wrote:

--
cheers
    elvelind grandin

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »