SPAView¶
- class djcrud.views.spa.SPAView(**kwargs)[source]¶
Bases:
TemplateViewFull-screen SPA shell with server-rendered sidebar navigation.
Subclass and extend
Mediato load your client ES modules withScript(type="module").djcrud/base_spa.htmlis the default template (unpoly_target = 'body'so menu links full-reload across shells). Setmount_elementto the HTML your client bundle attaches to; the template renders{{ view.mount_element|safe }}.Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- media¶
Merged
Mediafor this view (shell + subclass).