4 ms·
Does class TodoView(UnicornView): create a model? class UnicornView(TemplateView) and from django.views.generic.base import TemplateView Is th
by throwaway154 3y ago
Does
class TodoView(UnicornView):
create a model?
class UnicornView(TemplateView)
and
from django.views.generic.base import TemplateView
Is this Django magic a Flasker doesn't get?
- selcuka 3y agoAs far as I understand UnicornView attributes (such as `self.tasks`) simply synchronise client state with the server side. It doesn't seem to automagically create a model instance unless you specifically do it.
- kbaker 3y agoThis is correct. It looks like there is good integration with existing Django models: https://www.django-unicorn.com/docs/django-models/ https://www.django-unicorn.com/docs/django-models/