Skip to content

UbiCastTeam/django-web-utils

Repository files navigation

Django web utils

A collection of utilities for web projects based on Django.

This library is only compatible with Python 3.9+.

Usage

Add in your settings:

INSTALLED_APPS = [
    # [...]
    'django_web_utils',  # to get translations of utils files
    # 'django_web_utils.file_browser',
    # 'django_web_utils.monitoring',
    # [...]
]

Sub applications documentations

Development

All dependencies are required for the following commands (django, bleach and pillow).

Code check

make lint
make deadcode

Translations

make generate_po
make generate_mo

Tests

To run all tests:

make test

To run a single test:

make test PYTEST_ARGS='-x tests/testapp/tests/test_csv_utils.py'

Run test server

make run

With antivirus:

make run NEED_CLAMAV=1

Remove Python compiled files

make clean