5 ms·
> 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" Djan
by wenbert 17y ago
> 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 ;)
- davidw 17y agoI 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.
- dlib 17y agoThere'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 http://github.com/justinfrench/formtastic
- tvon 17y agoI 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.html 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.
- mdasen 17y agoYes 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/ 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.
- gridspy 17y agoDjango 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/ 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/ http://docs.djangoproject.com/en/1.1/intro/ Give it a shot!
- mcantelon 17y agoSame with Drupal: create a type (using the web interface or via code) and you get free admin forms.
- brandnewlow 17y agoDon'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.
- aasarava 17y agoIt'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?
- mcantelon 17y agoVery true. Drupal is like Microsoft Word... it takes initiative to do things you may not have asked for.