Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Django Vs Rails

Reply
Thread Tools

Django Vs Rails

 
 
flamesrock
Guest
Posts: n/a
 
      09-06-2005
Firstly, this topic is NOT intended for trolling or starting any flame
wars.

I want to know if anyone has experience with these frameworks, and if
so, how do they compare? Which one do you prefer?

Going back to school in a few days, I simply don't have the time to try
both.

-thanks
http://djangoproject.com
http://rubyonrails.com

 
Reply With Quote
 
 
 
 
D H
Guest
Posts: n/a
 
      09-06-2005
flamesrock wrote:
> Firstly, this topic is NOT intended for trolling or starting any flame
> wars.


Whatever you say, "flamesrock".
 
Reply With Quote
 
 
 
 
gene tani
Guest
Posts: n/a
 
      09-06-2005
http://griddlenoise.blogspot.com/200...off-rails.html
http://www.boddie.org.uk/python/web_frameworks.html

flamesrock wrote:
> Firstly, this topic is NOT intended for trolling or starting any flame
> wars.
>


 
Reply With Quote
 
flamesrock
Guest
Posts: n/a
 
      09-06-2005
Thanks for the links, gene tani.

D H,
'flamesrock' refers to the Calgary Flames, not the act of flaming.

 
Reply With Quote
 
Diez B. Roggisch
Guest
Posts: n/a
 
      09-06-2005
gene tani wrote:
> http://griddlenoise.blogspot.com/200...off-rails.html


I don't think that opinion is very founded - especially what he thinks
metaprogramming is about, and what not.

What he seems not to grasp is the crucial difference between django and
rails/subway (at least in the way the yare _used_ by his examples):

- rails/subway reflect over a existing table. They create OR-mappings
based on that. You only specify exceptional attributes for these mappings.

- django specifies the whole meta-model in python - and _generates_
the SQL/DDL to populate the DB. So obviously you have to be more verbose
- otherwiese you won't have the fields you need.


I personally prefer the latter approach - I want my tables modeled after
my objects, not the other way round. I tried to find out if subway and
rails can do the same - that is, generate the sql. For subway the lack
of documentation prevented that, and I didn't find it in rails , too.

And there is at least one shortcoming to the first approach, when using
the most popular RDBMS, MySQL: The lack of foreign key constraints makes
me wonder how to automatically infer 1:n or m:n relationships. From a
rails tutorial, I see that one has to declare these too:

http://www.onlamp.com/pub/a/onlamp/2...ls.html?page=5


But maybe someone who has expirience with subway or rails can elaborate
on this?

Diez
 
Reply With Quote
 
gene tani
Guest
Posts: n/a
 
      09-06-2005
Here's another, (i'm just flipping thru del.icio.us and furl tags, not
endorsing any viewpoints. I've never looked at Django or Subway, but I
do need to look at zope 3, i think):

http://www.magpiebrain.com/archives/...ils_and_django

Diez B. Roggisch wrote:
> gene tani wrote:
> > http://griddlenoise.blogspot.com/200...off-rails.html

>


 
Reply With Quote
 
Jaroslaw Zabiello
Guest
Posts: n/a
 
      09-06-2005
Dnia 5 Sep 2005 19:06:51 -0700, flamesrock napisał(a):

> Firstly, this topic is NOT intended for trolling or starting any flame
> wars.
>
> I want to know if anyone has experience with these frameworks, and if
> so, how do they compare? Which one do you prefer?


Django's ORM does not work with SQL Server (only Postgresql, MySQL and
SQlite). it would be problem to use Django for m$ based intranets. Rails
has more features, better docs and seems to be more mature than Django. And
last but not least, Django has no official release up today.

--
JZ
 
Reply With Quote
 
D H
Guest
Posts: n/a
 
      09-06-2005
flamesrock wrote:
> D H,
> 'flamesrock' refers to the Calgary Flames, not the act of flaming.
>


It was just a joke about your statement and your name. I thought it was
obvious enough that a smiley wasn't necessary. I don't care though,
flames happen on comp.lang.python all the time.
Go with Rails. Django is only like a month old. Unless you are more
comfortable using python than ruby.
 
Reply With Quote
 
bruno modulix
Guest
Posts: n/a
 
      09-06-2005
D H wrote:

(snip)
> Go with Rails. Django is only like a month old.


Please take time to read the project's page. Django has in fact three
years of existence and is already used on production websites, so it's
far from pre-alpha/planning stage.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in ''.split('@')])"
 
Reply With Quote
 
D H
Guest
Posts: n/a
 
      09-06-2005
bruno modulix wrote:
> D H wrote:
>
> (snip)
>
>>Go with Rails. Django is only like a month old.

>
>
> Please take time to read the project's page. Django has in fact three
> years of existence and is already used on production websites, so it's
> far from pre-alpha/planning stage.
>


Don't make any assumptions about what I have and haven't read. Django
was only publicly released in mid-July. Less than two months ago.
I never implied it was "pre-alpha" or in a "planning" stage.
The Ruby framework is also more mature and much much more tested than
Django. But even then I am not stating one is inherently better than
the other. Both seem very well designed. But if you have no clue about
either project like the original poster, then I'd recommend Rails,
unless you are already comfortable with Python (and not used to Ruby),
which case go with Django.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Django and Django Book John Posner Python 0 11-13-2010 06:55 PM
Need a compelling argument to use Django instead of Rails Ray Python 96 08-18-2006 04:53 PM
Benckmarking Ruby on Rails, Django, Perl matt@e-titans.co.uk Ruby 9 04-27-2006 02:12 PM
[ANN] Rails and Django Debate John W. Long Ruby 0 11-26-2005 06:33 PM
Django - Rails killer comes... JZ Python 4 07-18-2005 11:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57