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 ever

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 > "net" variable into t

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

2009-06-08 Thread Mitch Anderson
'num': a }) break myrange.append({'num': a }) continue -Mitch On Mon, Jun 8, 2009 at 9:35 AM, Mitch Anderson wrote: > On Mon, Jun 8, 2009 at 3:46 AM, Chris Stoyles wrote: >> The problem is that there is no "number_list" key in your con

Multiple Select Check Boxes - newbie...

2009-03-09 Thread Mitch Anderson
Hi, I'm new to django and python in general so, I'm not sure if the way I'm doing this is the most correct way. But I'm writing a manager application for FTP... I keep the user accounts in a database and I'm writing the django app to manage it. Anyway, I have three models more or less like thi

inlineformset or? link to three different models...

2009-10-20 Thread Mitch Anderson
response('systems/assign_ip.html', { 'address': address, 'forms': form, }) Any pointers as to what I should be looking for would be greatly appreciated... -Mitch Anderson --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: No stylesheet in administration panel

2010-05-18 Thread Mitch Anderson
Depending on your ADMIN_MEDIA_PREFIX in settings.py (default is /media/) your webserver should be configured to point to the django admin media location... I have this line in my apache config Alias /media/ /usr/share/pyshared/django/contrib/admin/media/ -Mitch On Tue, May 18, 2010 at 9:47 AM,

script adding FileField, no attribute chunks

2010-11-15 Thread Mitch Anderson
I'm having a problem with a command script that I want to create a object that has a FileField as part of the model. My Model Looks like this: class Files(models.Model): STATUS = ( ('unknown', 'Unknown'), ('down', 'Downloading'), ('done', 'Done'

Re: script adding FileField, no attribute chunks

2010-11-16 Thread Mitch Anderson
On Tue, Nov 16, 2010 at 3:28 AM, Tom Evans wrote: > Django doesn't want a python file or text for a django file field, it > wants a django.core.files.File. I find the easiest one to use is the > InMemoryUploadedFile. Here is a snippet I use for fetching an image > from the web, and creating a dja