Re: Problems with view... not sure how to get the data to my template

2009-06-08 Thread Mitch Anderson
Well, I guess a good nights sleep did me well I discovered my error, the problem was within my loops... I had to move one of my appends outside the inside for loop... for a in range_list: for b in used_number_list: if str(b) == str(a): try: prod

Re: Problems with view... not sure how to get the data to my template

2009-06-08 Thread Mitch Anderson
On Mon, Jun 8, 2009 at 3:46 AM, Chris Stoyles wrote: > The problem is that there is no "number_list" key in your context, there is > only a "range" and "range_list" key (take a look at where you call > "render_to_response"). I think what you want to do is actually pass your >

Re: Problems with view... not sure how to get the data to my template

2009-06-08 Thread Chris Stoyles
Hi Mitch, I haven't read through your example in detail, but just glancing over it I think that I can see the mistake you're making The problem is that there is no "number_list" key in your context, there is only a "range" and "range_list" key (take a look at where you call

Problems with view... not sure how to get the data to my template

2009-06-07 Thread Mitch Anderson
Below is what I have currently... it currently displays the numbers in the range its supposed to, but tying the products and displaying those where they should be in the number list has become the problem... One product can have multiple numbers associated, and I didn't want to fully populate