News for hackers. Stuff that matters.
Re:Django 1.11 Released by sparkling on Tuesday April 04, 2017 @12:42PM (#14034639)
It boils down to Python vs Ruby. Overall, both frameworks are pretty similar and you can build a modern web application in both.

Personally i think RoR is the slightly better framework (better defaults, easy test/dev/production setup, sane asset handling), but i prefer Python over Ruby, so i end up using Django.

Re:Django 1.11 Released by drewrv on Tuesday April 04, 2017 @12:46PM (#14034692)
Does Rails have anything like the django admin?
Re:Django 1.11 Released by triangleman on Tuesday April 04, 2017 @12:57PM (#14034807)
No idea if this is comparable: https://activeadmin.info/

Edit: What a long strange trip it's been. According to my old bookmarks, wycats developed a rails admin module about 10 years ago (code not available today). I discovered that he also worked on Merb, sort of a fork of Rails, and then after helping to merge that back into Rails, he helped sferik port MerbAdmin to RailsAdmin, which exists today!

https://github.com/sferik/rails_admin

I will definitely have to try Rails 5 and see what's up, it looks like I missed a lot over the years.

Re:Django 1.11 Released by copperx on Tuesday April 04, 2017 @01:57PM (#14035469)
Just a heads up: Admin gems are only suitable for projects that are simple and stay simple. If you want to do something that's not provided by your admin gem, you'll be fighting it. I have gone through that arduous path myself multiple times, only to end up rewriting everything from scratch.

I would love to know if Django's Admin fares better in this regard.

More: http://rubyjunky.com/get-rid-of-your-admin-gem.html

Re:Django 1.11 Released by Daishiman on Tuesday April 04, 2017 @04:13PM (#14036737)
I've used the Django admin in pretty much every production project I've touched. It's the bees' knees. There's some customization overhead that becomes higher than doing your own thing is you really want to make your own admin views, but at that point nobody's stopping you from making dashboards from scratch.
Re:Django 1.11 Released by bigmanwalter on Tuesday April 04, 2017 @08:54PM (#14038739)
I came to a similar conclusion in Django. I now build my own admin interfaces.
Re:Django 1.11 Released by nik736 on Tuesday April 04, 2017 @01:06PM (#14034931)
Not built in but it's really easy to build it yourself or use a Gem like ActiveAdmin.
Re:Django 1.11 Released by scrollaway on Tuesday April 04, 2017 @12:44PM (#14034666)
As someone who hasn't used RoR, can you talk about the difference in asset handling?
Re:Django 1.11 Released by debaserab2 on Tuesday April 04, 2017 @01:05PM (#14034924)
Rails uses an asset pipeline package called sprockets. You throw everything in a special directory and it wraps it all up and packages it nicely for you. This also gives you SASS and coffee compilation by default.

Sprockets handles minification and cache invalidation for you.

If you don't mind the opinionated approach to your javascript and stylesheets, it works fine. If you just need to sprinkle in some javascript on top of your site, it's fantastic. If you intend for your app to be javascript heavy, a lot of people rip out sprockets altogether and fallback to webpack to handle asset compilation (and I believe the newer Rails version is integrating webpack to play nicer with the rest of the framework)

I can speak from personal experience that Sprockets is a PITA if you want to use npm.

Re:Django 1.11 Released by TkTech on Tuesday April 04, 2017 @01:22PM (#14035103)
This is the same in Python, with a bunch of different options. A common one is webassets[1] which has simple integrations for django.

[1]: https://webassets.readthedocs.io/en/latest/

Re:Django 1.11 Released by helb on Tuesday April 04, 2017 @02:29PM (#14035809)
It's also possible to use Webpack with Django easily. With working hot module reload and everything. https://github.com/owais/django-webpack-loader
Re:Django 1.11 Released by utku_karatas2 on Tuesday April 04, 2017 @01:22PM (#14035113)
For a similar experience in Django, one should better start with https://github.com/pydanny/cookiecutter-django instead of the default generated project.
Re:Django 1.11 Released by steveklabnik on Tuesday April 04, 2017 @01:22PM (#14035101)
> (and I believe the newer Rails version is integrating webpack to play nicer with the rest of the framework)

Yup http://weblog.rubyonrails.org/2017/2/23/Rails-5-1-beta1/