Generating dynamic csv data

2009-03-02 Thread GP
I have a view which generates a table (table_view) of the most recent entries entered in the Test table of the database. I have the option of querying the database and render the table based on the user criteria as well Something like this: tests = Test.objects.filter(field1 = ...) The searc

Re: Generating dynamic csv data

2009-03-03 Thread GP
> What you want to do is abstract the machinery that creates the queryset into > a seperate function, that way you can take the GET vars in both functions > and get a queryset from them.  FWIW I've been working on a project to do > something similar here:http://github.com/alex/django-filter/tree/m

Re: global variables in stateless applications (was "Generating dynamic csv data")

2009-03-03 Thread GP
> This is bound to fail when user A hits view #1, then user B hits > view #1 (overwriting A's global), then user A hits view #2, > seeing B's results. Yep, figured that out the hard way > your views should be fairly stateless, relying only on > information coming from the user -- whether stored

Re: global variables in stateless applications (was "Generating dynamic csv data")

2009-03-03 Thread GP
opened on the same client. One browser hitting table_view, second tab also hitting table_view and subsequently hitting csv_view on browser window 1 I get stale data. Is there a trick to avoid this scenario? On Mar 3, 2:57 am, Tim Chase wrote: > GP wrote: > > I have a view which generate

save_m2m and primary key.

2011-07-28 Thread GP
Hello, I am creating a new backend with jbase database using jython and zxjdbc. The new backend works fine (mostly). Able to login to admin page. completed the "web poll" application from documentation. I face proble with save_m2m. Lets say when I want to create a group. The django gives error th

Can Django channel execute multiple consumers run in parallel per request to perform backend calculation

2023-09-06 Thread GP
Hi, Want to know Django channel capability to perform back-end complex calculation by running multiple consumers for one request. I am about to build one back-end calculation system under which for one client request there will be 1 job request and for that 1 job request can have upto 1k cand

How to use connect and disconnect, receive method in SyncConsumer using HTTP protocol

2023-09-08 Thread GP
HI, I am using SyncConsumer with HTTP protocol (not WebSocket ) for background work by referring this document Worker and Background Tasks — Channels 4.0.0 documentation . I have seen there are connect, disconnect & receive method