How do I use URL routing? #242
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to register the URL endpoints with both Django and ReactPy. Unfortunately there was no way for us to automate this. For example, if you know that all
django_router(
route("/exmaple/route/123", html.div("Example 1")),
route("/router/*", html.div("Fallback")),
) |
Beta Was this translation helpful? Give feedback.
You need to register the URL endpoints with both Django and ReactPy. Unfortunately there was no way for us to automate this.
For example, if you know that all
/example/route/
URLs will need to be handled by ReactPy, then you will need to/example/route/
re_path(r"^/example/route/.*$", my_reactpy_view)