Mouse movement detection and processing from client UI

2021-10-26 Thread Tristania W
So there are Python packages out there that can handle mouse movement detection locally. But for a Django app, how do we go about do this? Clearly we cannot have any processing power on the client machine. Below are some examples to be more specific: 1 - An e-commerce page where buyer clicks,

Re: Template inheritance with dynamic content

2020-11-16 Thread Tristania W
the zipping within "*some_view*" itself, then passing the zip object into "include" works. I have no idea why, though. Thanks very much. On Saturday, 14 November 2020 at 04:04:04 UTC-7 Tristania W wrote: > Hi, > > To follow up, when I tried the following: > * {% include

Re: Template inheritance with dynamic content

2020-11-14 Thread Tristania W
; <https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#include> > directive. > > > Just have your parent and child include the same block and use with… > phrase to override variables within the included template. > > Regards, > David > > > On

Template inheritance with dynamic content

2020-11-13 Thread Tristania W
Is it possible to make one sub-template inherit a div with dynamic content from an upper level template? For eg., Template2 extends Template1. Within Template1, there is a div XXX that depends on a variable {{ var1 }}. This variable is passed to the view *def view1*, which renders Template 1.