django-compressor
django-webpack-loader
Our great sponsors
django-compressor | django-webpack-loader | |
---|---|---|
6 | 10 | |
2,755 | 2,491 | |
0.5% | 0.1% | |
6.6 | 7.9 | |
18 days ago | 22 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-compressor
-
Why bother ?
In general, you can use almost any plain JS library by simply loading it in your view template. For forms specifically, you can write custom widgets and define dependencies to libraries via form assets. django-compressor might be worth a look if you go heavy on this.
-
I wrote a filter for Django Compressor that removes unused CSS classes and makes your СSS files much smaller
Idk, it depends on how much you care about the page loading time. Even without the PurgeCSS filter, I would recommend the Django Compressor app. I use it on all my websites. It automatically merges your css/js files and minifies them (removes white spaces, comments, etc.). It also creates a unique name for the combined CSS so if you changed your CSS files, your users will always see the fresh version, not the cached by the browser one.
-
I made a website that helps you to find similar YouTube channels
django_compressor - for merging and minimizing css and js assets
-
what are 3 django packages everyone should know about?
django-compressor with django-libsass for auto sass compilation
-
A powerful library to minify-html for django
But isn't that what you have django-compressor for?
-
How I reduced Raveberry's transferred frontend code by 90%
The external dependencies were downloaded into the static/ folder containing all frontend assets using yarn and a package.json. Other than that, yarn was not used. Next I ran a bash script that removed all files I did not need, keeping the javascript, css and font files that should be served. In html, these files where directly included. I knew that loading many files is bad, so I used django-compressor to combine them into one big file. Conveniently, this tool also provided me with a way to compile scss.
django-webpack-loader
- Django with React
-
what are 3 django packages everyone should know about?
Django Webpack Loader
-
Django and webpack
Check out https://github.com/django-webpack/django-webpack-loader
-
How can i get out of the frontend approach choice hell?
About one month ago i started having a lot of doubts on my frontend. At first, instead of decoupling frontend from backend, i decided to use a library called django-webpack-loader that lets me serve webpack from Django templates, so i created a Vue app and served it from Django (i used a simple index.html view). So at this point i basically have a SPA that instead of being decoupled from Django, it's served by Django.
-
SPA With Django
You can do this with Django and nothing else easily or you can use a third party library called Django-Webpack-Loader.
- Prelaunch: Definite Guide to Django and Webpack
-
Vuejs with django
In addition to what's already been said (completely separate frontend & backend; or do a CDN include), I've worked in a codebase that uses django-webpack-loader.
- Any good tutorials on pairing Vue with Django?
- How do you add reactivity to Django templates?
-
Show HN: Django and React SaaS boilerplate tutorial
The biggest challenge to using Django with React IMO is getting the right blend of isomorphic rendering down. I don't want to go full SPA with Django as this defeats the purpose of Django IMO. Most parts of the site I want server-rendered, while in stateful parts I want React. So, let's say I have a site with 20 different React "apps" (i.e. stateful components) that I want to distribute amongst my various Django sections (Django "Apps" within the same project). And I want to do that with one webpackconfig. How do I tell my webpack where to put all those react bundles? The answer I've found is django-webpack-loader[1], however as you can see in the Issues section, one of the biggest limitations here is the inability to chunk React (and other issues).
Does anyone have a solution they like for this kind of isomporphic Django problem?
1. https://github.com/owais/django-webpack-loader
What are some alternatives?
django-pipeline - Pipeline is an asset packaging library for Django.
whitenoise - Radically simplified static file serving for Python web apps
webassets - Asset management for Python web development.
django-manifest-loader - Simplifies webpack configuration with Django
django-storages - https://django-storages.readthedocs.io/
cookiecutter-react-django - From hello world to Heroku deployment, using separated Front and Back Ends
jinja-assets-compressor - A Jinja extension (compatible with Flask and other frameworks) to compile and/or compress your assets.
Next.js - The React Framework
Flask-Assets - Flask webassets integration.
django-sockpuppet - Build reactive applications with the django tooling you already know and love.
File Conveyor - File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
cash - An absurdly small jQuery alternative for modern browsers.