django-viewcomponent¶ A simple way to create reusable components in Django, inspired by Rails’ ViewComponent. Topics¶ Installation Overview What’s a django-viewcomponent Why use django-viewcomponent Getting Started Slots Basic Check if the slot is filled Render multiple slots Connect other component in the slot Separation of concerns Component argument in slot fields supports different variable types Recursive Slot Field Call Polymorphic slots Templates Inline template Template file Dynamic template Context Self NameSpace Use Components in Python Previews Config Create a preview Override Template Check the preview django-lookbook Testing Articles FAQ django-viewcomponent vs django-components