Skip to content

Run the Webserver

Overview

Run a webserver to display your Django view.


Viewing your component using a webserver

To test your new Django view, run the following command to start up a development webserver.

python manage.py runserver

Now you can navigate to your Django project URL that contains a ReactPy component, such as http://127.0.0.1:8000/example/ (from the previous step).

If you copy-pasted our example component, you will now see your component display "Hello World".

Pitfall

Do not use manage.py runserver for production.

This command is only intended for development purposes. For production deployments make sure to read Django's documentation.


Last update: August 27, 2023
Authors: Mark Bakhit