3 ms·
This is subjective and in part marketing but given that it is installed with pip install django-unicorn and used with from django_unicorn.components impo
by pmontra 3y ago
This is subjective and in part marketing but given that it is installed with
pip install django-unicorn
and used with
from django_unicorn.components import UnicornView
like any other python module used in a Django app, I'd say that it brings the full stack inside Django, much like its counterparts for Laravel, Phoenix and Rails. What was only backend plus server side generated pages is also Javascript now, written inside the backend without even having to know Javascript.
- ofrzeta 3y agoAs in "alternative views for Django"?
- pmontra 3y agoThey almost surely work together with Django standard views and templates. A Django view prepares the data for the template that renders the HTML page. Then some of that HTML talks with the Unicorn views declared in the attributes of its tags.