News for hackers. Stuff that matters.
Re:The Onion Uses Django and Why it Matters to Us by wenbert on Thursday March 25, 2010 @10:34AM (#1218516)
> That we could use the Django admin rather than create custom entry forms I think saved us 2 months work.

Wow! I agree with this. I was able to "preview" Django a few months back and I was blown away by the way it creates the admin forms. It almost feels like cheating ;)

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

Re:The Onion Uses Django and Why it Matters to Us by mcantelon on Thursday March 25, 2010 @12:44PM (#1218792)
Same with Drupal: create a type (using the web interface or via code) and you get free admin forms.
Re:The Onion Uses Django and Why it Matters to Us by brandnewlow on Thursday March 25, 2010 @01:17PM (#1218883)
Don't forget though that you have to hack the forms to remove all the confusing garbage admin stuff that Drupal will display to anyone you give node admin permissions to.

It's a real pain in the butt to create user facing content creation forms in Drupal.

Re:The Onion Uses Django and Why it Matters to Us by aasarava on Thursday March 25, 2010 @01:39PM (#1218942)
It's pretty rare that you'd give full node admin permissions to typical business users or end users. "Create" and "edit" permissions are usually sufficient for most elevated roles, and that hides a lot of the admin-specific functions that show up on the forms, no?
Re:The Onion Uses Django and Why it Matters to Us by mcantelon on Thursday March 25, 2010 @03:31PM (#1219274)
Very true. Drupal is like Microsoft Word... it takes initiative to do things you may not have asked for.