@@ -303,7 +303,7 @@ and upload. And you get the following excel-alike table in response to confirm a
303303.. note ::
304304
305305 pyexcel-handsontable along with pyexcel v0.5.0 brings excel-alie table rendering feature.
306- Let me explain how this view is done at the end of the tutorial .
306+ Let me explain how this view is done a few paragraphs later .
307307
308308 Then visit the admin page http://localhost:8000/admin/polls/question,
309309you shall see questions have been populated:
@@ -374,6 +374,32 @@ you can visit http://localhost:8000/polls/export/sheet and will get **Question**
374374exported as a single sheet file.
375375
376376
377+ Render an excel-alike html in a browser
378+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
379+
380+ In the tutorial, you have seen the rendering of the excel-alike table. First of
381+ all, the credits goes to `handsontable developers <https://handsontable.com/ >`_.
382+ `pyexcel-handsontable ` as renderer plugin to pyexcel v0.5.0 bring it to
383+ pyexcel developers.
384+
385+ Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
386+ file type.
387+
388+ .. literalinclude :: ../../polls/views.py
389+ :lines: 153-155
390+
391+ It is understood that you will want to embed it into your django templates.
392+ Here are the sample embedding code:
393+
394+ .. literalinclude :: ../../polls/views.py
395+ :lines: 158-189
396+
397+ Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
398+ and http://localhost:8000/polls/embedded_handson_view_single/.
399+
400+ .. image :: handsontable-embedded.png
401+
402+
377403How to import one sheet instead of multi-sheet book
378404********************************************************************************
379405
@@ -452,30 +478,6 @@ set exported as a single sheet file as:
452478
453479.. image :: custom-export.png
454480
455- Render an excel-alike html in a browser
456- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
457-
458- In the tutorial, you have seen the rendering of the excel-alike table. First of
459- all, the credits goes to `handsontable developers <https://handsontable.com/ >`_.
460- `pyexcel-handsontable ` as renderer plugin to pyexcel v0.5.0 bring it to
461- pyexcel developers.
462-
463- Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
464- file type.
465-
466- .. literalinclude :: ../../polls/views.py
467- :lines: 153-155
468-
469- It is understood that you will want to embed it into your django templates.
470- Here are the sample embedding code:
471-
472- .. literalinclude :: ../../polls/views.py
473- :lines: 158-189
474-
475- Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
476- and http://localhost:8000/polls/embedded_handson_view_single/.
477-
478- .. image :: handsontable-embedded.png
479481
480482.. _data-types-and-its-conversion-funcs :
481483
0 commit comments