Python Forum

Full Version: Django Encore
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, everybody Wink

Today I've created Django Encore project. The repository is here - https://github.com/egorsmkv/django-encore

If you worked with the Symfony framework, especially with the fourth version, then you saw a cool project Webpack Encore. That project really helps in nowadays development process, it generates CSS/JS files from Sass/Less/Stylus sources and new JS standards and compile them into a few files and then includes in templates.

There's a bundle for Symfony - https://github.com/symfony/webpack-encore-bundle - which includes all those generated files into your application just by a few template tags.

I am working with Django too and it was omission not to have an alternative in the Python world. Because of this, I solved this omission and created https://github.com/egorsmkv/django-encore

You can see a small description on the GitHub page with some code. The real project which uses the library is located under the example folder in the repo.