Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-react-tools

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-react-tools

Tools for helping integrate ReactJS into a Django project.

  • 0.2.15
  • PyPI
  • Socket score

Maintainers
1

Upload Python Package

django-react-tools

Tools for helping integrate ReactJS into a Django project.

The current iteration of this tool adds a simple management command to your Django project that will build, copy to a Django static directory and rename accordingly.

If you wish to contribute, please Fork the repo and then make a Pull Request. We're always open for people who want to help make this a better package.

To start run

pip install django-react-tools

then add 'reacttools' to your django project's list of apps.

next in settings, set where to find the React project:

REACT_PROJECT_DIRECTORY = "/path/to/project"

The default destination location is the Static Root directory for your Django project. You can change it by modifying the setting variable.

REACT_DJANGO_DEST = settings.STATIC_ROOT

To run all you need to do is call the management command.

> ./manage.py collectreact

By default the React project is buit using "yarn build". If you want to change the command you can:

REACT_BUILD_COMMAND = "npm build"

If you want to skip the build you can run the comman this way:

> ./manage.py collectreact --no-build

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc