reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.
https://reactive-python.github.io/reactpy-django/
MIT License
323 stars 18 forks source link

Serve web modules via Django static files #63

Open Archmonger opened 2 years ago

Archmonger commented 2 years ago

Current Situation

Currently, we serve our JavaScript web modules (JavaScript Components) via views. This is due to the fact that our current architecture does not let us know what web modules exist until runtime.

However, Django views are less efficient at serving files than a webserver such as Nginx or Apache.

Proposed Actions

Develop a way of integrating with the Django Static File system.

Work Items

We have a couple of paths we could take

1) Create a static file finder that points to ReactPy's web modules directory

See #4 for the original issue.

Archmonger commented 2 years ago

Blocked on idom-team/idom#786