File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,33 @@ First, install the package. This will also install plotly and some dash packages
27
27
28
28
pip install django_plotly_dash
29
29
30
- Then, just add ` django_plotly_dash ` to ` INSTALLED_APPS ` in your Django ` settings.py ` file
30
+ Then, add ` django_plotly_dash ` to ` INSTALLED_APPS ` in your Django ` settings.py ` file
31
31
32
32
INSTALLED_APPS = [
33
33
...
34
34
'django_plotly_dash.apps.DjangoPlotlyDashConfig',
35
35
...
36
36
]
37
37
38
+ The application's routes need to be registered within the routing structure by an appropriate `` include `` statement in
39
+ a `` urls.py `` file::
40
+
41
+ urlpatterns = [
42
+ ...
43
+ path('django_plotly_dash/', include('django_plotly_dash.urls')),
44
+ ]
45
+
46
+ The name within the URL is not important and can be changed.
47
+
48
+ For the final installation step, a migration is needed to update the
49
+ database::
50
+
51
+ ./manage.py migrate
52
+
38
53
Note that this package requires version 2.0 or greater of Django, due to the use of the ` path ` function for registering routes.
39
54
40
- Live updating of applications, to share application
41
- state, requires further
42
- configuration. See the [ online documentation] ( https://django-plotly-dash.readthedocs.io/en/latest/ ) for more details.
55
+ Further configuration, including live updating to share application
56
+ state, is described in the [ online documentation] ( https://django-plotly-dash.readthedocs.io/en/latest/ ) .
43
57
44
58
## Demonstration
45
59
You can’t perform that action at this time.
0 commit comments