News for hackers. Stuff that matters.
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/