tekton / django-compress-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-compress-react

In order to easily use react.js in Django in a more pure Python way.

logging

Logging isn't readily available but an environment variable can be set to invoke print statements:

REACT_DEBUG=True

Any value is technically valid as it just looks for it to be set.

Example:

COMPRESS_PRECOMPILERS = (
    ('text/jsx', 'compress_react.ReactFilter'),
)

About


Languages

Language:Python 100.0%