Skip to main content

This django library allows you to add React components into your django templates.

Project description

Python tests PyPI version

Django-React-Templatetags

Django-React-Templatetags

This django library allows you to add React (16+) components into your django templates.

Features

  • Include react components using django templatetags
  • Unlimited amount of components in one view
  • Support custom models (that is from the beginning not json-serializable)
  • Server side rendering with Hypernova or Hastur

Installation

Install the library with pip:

$ pip install django_react_templatetags

Where to go from here?

You should first read Getting started, then go through these topics:

Tests

This library include tests, just run python runtests.py

You can also run separate test cases: python runtests.py tests.test_filters.ReactIncludeComponentTest

Coverage

Make sure you have Coverage.py installed, then run coverage run runtests.py to measure coverage. We are currently at 95%.

Contributing

Want to contribute? Awesome. Just send a pull request.

Security

If you believe you have found a security issue with any of our projects please email us at security@frojd.se.

License

Django-React-Templatetags is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_react_templatetags-8.0.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

django_react_templatetags-8.0.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file django_react_templatetags-8.0.0.tar.gz.

File metadata

File hashes

Hashes for django_react_templatetags-8.0.0.tar.gz
Algorithm Hash digest
SHA256 3d89a1a4f6d402a066656944fa4f7dbd92ab20ed54e8e156fb9e97408d3db3bf
MD5 da976f906c547b60873758ead573d22e
BLAKE2b-256 eb110ebdaeb9ecd71a19ba66d08194e68f4aca7a5bba8687b3aee5d7d36c76bb

See more details on using hashes here.

File details

Details for the file django_react_templatetags-8.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_react_templatetags-8.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf7b26791dcf511cd9b224ff348d7f826bcf20d4beeb1893db271c632a13a263
MD5 760e61e3aad9daa8707ff4c8b5964593
BLAKE2b-256 2c6469cc87cc3a56dc7c60a7db2424ccc9d4c2ca1b3c3b9f6317a6f55658050e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page