A collection of utilities for web projects based on Django.
This library is only compatible with Python 3.11+.
Add in your settings
:
INSTALLED_APPS = [
# [...]
'django_web_utils', # to get translations of utils files
# 'django_web_utils.file_browser',
# 'django_web_utils.monitoring',
# [...]
]
All dependencies are required for the following commands (django, bleach and pillow).
make lint
make deadcode
make generate_po
make generate_mo
To run all tests:
make test
To run a single test:
make test PYTEST_ARGS='-x tests/testapp/tests/test_csv_utils.py'
make run
With antivirus:
make run NEED_CLAMAV=1
make clean