News for hackers. Stuff that matters.
Re:The Onion Uses Django and Why it Matters to Us by davidw on Thursday March 25, 2010 @11:16AM (#1218591)
I wonder if there's anything similar for Rails? The admin and user things are two aspects of Django that struck me quite positively, as a Rails user. I get annoyed with the half-baked auth things for Rails; it's not like I want to do anything that differently with each new site I do.
Re:The Onion Uses Django and Why it Matters to Us by gridspy on Thursday March 25, 2010 @09:22PM (#1220014)
Django can reverse-engineer models from your database schema extremely easily. Once that is done it is 30 minutes (perhaps 4 hours for a novice) configuration and you have a working django admin site against your Rails DB.

This is how I started with Django, I migrated from hand-coded SQL to Django in one day (followed tutorial, found how to reverse engineer models and off I went).

See http://docs.djangoproject.com/en/dev/howto/legacy-databases/ for the reverse engineering bit. Tutorial starts here : http://docs.djangoproject.com/en/1.1/intro/

Give it a shot!

Re:The Onion Uses Django and Why it Matters to Us by mdasen on Thursday March 25, 2010 @01:59PM (#1219003)
Yes and no. There have been some cool projects for Rails that provide administrative interfaces, but they all suffer from a lack of critical mass. Django's admin interface is just core to the framework - not because it has to be, but in the way that the core team sees it as something that can't languish.

On the horizon, merb-admin is being ported to Rails 3 by Yehuda Katz (http://yehudakatz.com/2009/12/31/spinning-up-a-new-rails-app...). If that comes to fruition, I think it might become a standard tool for Rails users who want admin pages. We'll see.

Being a part of the framework itself makes the Django admin interface always receive attention. Separate Rails projects do exist, but are often by one or a small number of people and not as widely used as the Django admin interface. So, they are there, but often don't have quite the polish and utility of Django's interface.

Re:The Onion Uses Django and Why it Matters to Us by tvon on Thursday March 25, 2010 @12:08PM (#1218693)
I can't say how good they are (as a guy that uses Django but takes a look at Rails about twice a year), but Google led me here:

http://ruby-toolbox.com/categories/rails_admin_interfaces.ht...

Typus seems the most Django-like.

Granted, a big advantage (as far as admin interfaces go) with Django is that almost every app uses it or at least keeps it in mind.

Re:The Onion Uses Django and Why it Matters to Us by dlib on Thursday March 25, 2010 @11:30AM (#1218615)
There's formtastic [1] to whip up forms according to the models. Using this and some DRY admin controller you can assemble an admin controller pretty quickly. Still, nowhere as fast as the Django admin. There are also some plugins to get an admin but they never did it for me.

[1] http://github.com/justinfrench/formtastic