Tutorial part 4 - get_queryset

2017-10-17 Thread tking
Hi, I've decided to teach myself Django and I'm enjoying the tutorial which I've so far found exceptionally detailed but I'm a bit confused by the get_queryset function in the IndexView class. Essentially my question is what calls this function? Is it automatically called when the class is us

Tutorial part 4 - get_queryset()

2017-10-17 Thread tking
Hi, I'm new and going through the tutorial and I'm having trouble understanding how the get_queryset() function in the IndexView is called, is this just an automatic part of using generic views? I had a look elsewhere in the documentation, primarily at generic views, and other examples seem t

Re: Tutorial part 4 - get_queryset

2017-10-17 Thread James Schneider
On Oct 17, 2017 4:44 AM, "tking" wrote: Hi, I've decided to teach myself Django and I'm enjoying the tutorial which I've so far found exceptionally detailed but I'm a bit confused by the get_queryset function in the IndexView class. Essentially my question is what calls this function? I alwa

Re: Tutorial part 4 - get_queryset

2017-10-17 Thread Tony King
Thanks James, that is a big help and I'm sure the link will provide some worthwhile extra reading, although I've clearly got a lot to learn anyway. Regards, Tony -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Django and Background Tasks

2017-10-17 Thread 'matrix1900' via Django users
Hi, I want to use a Data Collector Process to receive data from a separate Source (Sensor Data, etc) and deliver new values via websocket to a client (Website). Steps to do: 1. User opens website : *page 01*, 2. Django receives a web socket message: *page01* from the user (routing, consume

Queryset Union

2017-10-17 Thread Matthew Pava
Hi fellow users, I came across a situation where I needed to annotate a union-all query. Django's ORM is so powerful, and it has those features separately, but it cannot seem to handle annotating a union-all query. I was able to solve my problem by using two views inside PostgreSQL. I created

Re: Django and Angular2/4 example project

2017-10-17 Thread Pierre-Nicolas Tollitte
Hello, I've been using Django at work since the first beta versions. We switched to Angular + Django a few months ago. I don't really understand the idea behind mixing Django and Angular in a single project template. In my company, we use Django for the backend and Angular for the frontend and