Skip to main content

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

Project description

Build Status PyPI version

Django-React-Templatetags

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

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: - Settings - Adding a single component - Adding multiple components - Example application - Working with models - Server side rendering - FAQ

Tests

This library include tests, just run python runtests.py

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

Contributing

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

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.

Files for django_react_templatetags, version 5.4.0
Filename, size File type Python version Upload date Hashes
Filename, size django_react_templatetags-5.4.0.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page