{"repo":"django-commons/django-unicorn","free":true,"listed":false,"github":"https://github.com/django-commons/django-unicorn","clone":"git clone https://github.com/django-commons/django-unicorn.git","description":"The magical reactive component framework for Django ✨","language":"Python","stars":2660,"topics":["django","python","javascript","fullstack","frontend-framework"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Unicorn The magical reactive component framework for Django ✨ Unicorn adds modern reactive component functionality to your Django templates without having to learn a new templating language or fight with complicated JavaScript frameworks. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or forcing you to rebuild your application. With Django Unicorn, you can quickly and easily add rich front-end interactions to your templates, all while using the power of Django. https://www.django-unicorn.com has extensive documentation, code examples, and more! ⚡ Getting started 1. Install the package Use your favorite package manager to install Unicorn : - uv add django-unicorn - pip install django-unicorn - poetry add django-unicorn 2. Add django unicorn to INSTALLED APPS 3. Update urls.py 4. Add Unicorn to the HTML template 5. Create a component python manage.py startunicorn myapp COMPONENT NAME Unicorn uses the term \"component\" to refer to a set of interactive functionality that can be put into templates. A component consists of a Django HTML template and a Python view class which contains the backend code. After running the management command, two new files will be created: - myapp/templates/unicorn/COMPONENT NAME.html (component template) - myapp/components/COMPONENT NAME.py (component view) 6. Add the component to your template Example todo component The unicorn: attributes bind the element to data and can also trigger methods by","default_branch":null,"files":null,"tree":[],"storefront":"/r/django-commons","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/django-commons/django-unicorn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}