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: README.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -560,32 +560,34 @@ Finally, run celery with `celery -A myproject`. You may want to use celery's [d
560
560
561
561
## wq Framework integration
562
562
563
-
The Django Data Wizard has built-in support for integration with the [wq framework]. Configuration is mostly the same, except that you do not need to add `"data_wizard.urls"` to your urls.py as the wizard will register itself with [wq.db] instead.
563
+
The Django Data Wizard has built-in support for integration with the [wq framework]. On the server, configuration is mostly the same, except that you do not need to add `"data_wizard.urls"` to your urls.py as the wizard will register itself with [wq.db] instead.
564
564
565
-
Data Wizard includes mustache templates for each of the above tasks to integrate with the wq.app UI. Be sure to enable the [wq/progress.js] plugin for use with the `run_auto.html` and `run_data.html` template. You could allow the user to initiate an import run by adding the following to the detail HTML for your model:
565
+
Data Wizard provides mustache templates for each of the above tasks to integrate with the wq.app UI. These are rendered on the server and do not need to be included in your JavaScript build. However, you should install the [@wq/progress] plugin via NPM and register it with [@wq/app].
566
+
567
+
```javascript
568
+
// src/index.js
569
+
importappfrom'@wq/app';
570
+
importprogressfrom'@wq/progress';
571
+
572
+
app.use(progress);
573
+
app.init(config).then(...);
574
+
```
575
+
576
+
Once everything is set up, add the following `<form>` to the detail template that wq generates for your source model. Note that you will need to add this `<form>` manually even if the source model is one of `data_wizard.sources`. After adding the form, be sure to skip template regeneration for the source model.
0 commit comments