You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Using the following categories, list your changes in this order:
34
34
35
35
## [Unreleased]
36
36
37
-
-Nothing (yet)
37
+
-`django-idom` has been renamed to `reactpy-django`! Please note that all references to the word `idom` in your code should be changed to `reactpy`. See the docs for more details.
38
38
39
39
## [3.0.0] - 2023-03-08
40
40
@@ -248,18 +248,18 @@ Using the following categories, list your changes in this order:
Django-IDOM connects your Python project to a ReactJS front-end, allowing you to create **interactive websites without needing JavaScript!**
9
-
10
-
Following ReactJS styling, web elements are combined into [reusable "components"](https://reactpy.dev/docs/guides/creating-interfaces/your-first-components/index.html#parametrizing-components). These components can utilize [hooks](https://reactpy.dev/docs/reference/hooks-api.html) and [events](https://reactpy.dev/docs/guides/adding-interactivity/responding-to-events/index.html#async-event-handlers) to create infinitely complex web pages.
When needed, IDOM can [use components directly from NPM](https://reactpy.dev/docs/guides/escape-hatches/javascript-components.html#dynamically-loaded-components). For additional flexibility, components can also be [fully developed in JavaScript](https://reactpy.dev/docs/guides/escape-hatches/javascript-components.html#custom-javascript-components).
13
-
14
-
Any Python web framework with Websockets can support IDOM. See below for what frameworks are supported out of the box.
[ReactPy](https://reactpy.dev/) is a library for building user interfaces in Python without Javascript. ReactPy interfaces are made from components which look and behave similarly to those found in [ReactJS](https://reactjs.org/). Designed with simplicity in mind, ReactPy can be used by those without web development experience while also being powerful enough to grow with your ambitions.
@@ -25,13 +42,13 @@ Any Python web framework with Websockets can support IDOM. See below for what fr
25
42
26
43
<!--py-header-start-->
27
44
28
-
You will need a file to define your [IDOM](https://github.com/idom-team/idom) components. We recommend creating a `components.py` file within your chosen **Django app** to start out. Within this file, we will create a simple `hello_world` component.
45
+
You will need a file to define your [ReactPy](https://github.com/reactive-python/reactpy) components. We recommend creating a `components.py` file within your chosen **Django app** to start out. Within this file, we will create a simple `hello_world` component.
In your **Django app**'s HTML template, you can now embed your IDOM component using the `component` template tag. Within this tag, you will need to type in your dotted path to the component function as the first argument.
64
+
In your **Django app**'s HTML template, you can now embed your ReactPy component using the `component` template tag. Within this tag, you will need to type in your dotted path to the component function as the first argument.
48
65
49
66
Additionally, you can pass in `args` and `kwargs` into your component function. For example, after reading the code below, pay attention to how the function definition for `hello_world` (_in the previous example_) accepts a `recipient` argument.
50
67
51
68
<!--html-header-end-->
52
69
<!--html-code-start-->
53
70
54
71
```jinja
55
-
{% load idom %}
72
+
{% load reactpy %}
56
73
<!DOCTYPE html>
57
74
<html>
58
75
<body>
@@ -69,8 +86,10 @@ Additionally, you can pass in `args` and `kwargs` into your component function.
69
86
70
87
Follow the links below to find out more about this project.
71
88
72
-
-[Try it Now](https://mybinder.org/v2/gh/idom-team/idom-jupyter/main?urlpath=lab/tree/notebooks/introduction.ipynb) - Check out IDOM in a Jupyter Notebook.
73
-
-[Documentation](https://idom-team.github.io/django-idom) - Learn how to install, run, and use IDOM.
74
-
-[Community Forum](https://github.com/idom-team/idom/discussions) - Ask questions, share ideas, and show off projects.
89
+
-[Try it Now](https://mybinder.org/v2/gh/reactive-python/reactpy-jupyter/main?urlpath=lab/tree/notebooks/introduction.ipynb) - check out ReactPy in a Jupyter Notebook.
90
+
-[Documentation](https://reactive-python.github.io/reactpy-django) - learn how to install, run, and use ReactPy.
91
+
-[Community Forum](https://github.com/reactive-python/reactpy/discussions) - ask questions, share ideas, and show off projects.
92
+
-[Contributor Guide](https://reactive-python.github.io/reactpy-django/contribute/code/) - see how you can help develop this project.
93
+
-[Code of Conduct](https://github.com/reactive-python/reactpy-django/blob/main/CODE_OF_CONDUCT.md) - standards for interacting with this community.
Copy file name to clipboardExpand all lines: docs/includes/orm.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,6 @@ These `SynchronousOnlyOperation` exceptions may be resolved in a future version
8
8
9
9
<!--orm-fetch-start-->
10
10
11
-
By default, automatic recursive fetching of `ManyToMany` or `ForeignKey` fields is enabled within the default `QueryOptions.postprocessor`. This is needed to prevent `SynchronousOnlyOperation` exceptions when accessing these fields within your IDOM components.
11
+
By default, automatic recursive fetching of `ManyToMany` or `ForeignKey` fields is enabled within the default `QueryOptions.postprocessor`. This is needed to prevent `SynchronousOnlyOperation` exceptions when accessing these fields within your ReactPy components.
Now, you can create/modify the Django-IDOM source code, and Pull Request (PR) your changes to our GitHub repository.
1
+
Now, you can create/modify the ReactPy-Django source code, and Pull Request (PR) your changes to our GitHub repository.
2
2
3
3
To learn how to create GitHub PRs, [click here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).
0 commit comments