-
- Downloads
swh-web: Add django middlewares for HTML processing
In development mode, prettify all HTML generated by Django to ease debugging. In production mode, minify all HTML generated by Django to reduce the amount of data to send to clients.
Showing
- debian/control 3 additions, 0 deletionsdebian/control
- requirements.txt 3 additions, 0 deletionsrequirements.txt
- swh/web/common/middlewares.py 46 additions, 0 deletionsswh/web/common/middlewares.py
- swh/web/settings/development.py 2 additions, 0 deletionsswh/web/settings/development.py
- swh/web/settings/production.py 2 additions, 2 deletionsswh/web/settings/production.py
... | ... | @@ -3,12 +3,15 @@ |
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html | ||
# Runtime dependencies | ||
beautifulsoup4 | ||
django >= 1.10.7 | ||
djangorestframework >= 3.4.0 | ||
django_webpack_loader | ||
django_js_reverse | ||
docutils | ||
file_magic >= 0.3.0 | ||
htmlmin | ||
lxml | ||
pygments | ||
python-dateutil | ||
pyyaml | ||
... | ... |
swh/web/common/middlewares.py
0 → 100644
Please register or sign in to comment