Skip to content

Code

Overview

You will need to set up a Python environment to develop ReactPy-Django.

Note

Looking to contribute features that are not Django specific?

Everything within the reactpy-django repository must be specific to Django integration. Check out the ReactPy Core documentation to contribute general features such as components, hooks, and events.


Modifying Code

If you plan to make code changes to this repository, you will need to install the following dependencies first:

Once done, you should clone this repository:

git clone https://github.com/reactive-python/reactpy-django.git
cd reactpy-django

Then, by running the command below you can:

  • Install an editable version of the Python code
  • Download, build, and install Javascript dependencies
pip install -e . -r requirements.txt

Finally, to verify that everything is working properly, you can manually run the test webserver.

cd tests
python manage.py runserver

Navigate to http://127.0.0.1:8000 to see if the tests are rendering correctly.

GitHub Pull Request

Now, you can create/modify the ReactPy-Django source code, and Pull Request (PR) your changes to our GitHub repository.

To learn how to create GitHub PRs, click here.


Last update: August 27, 2023
Authors: Mark Bakhit