Re: newbie question on 'clean_' functions

2009-12-09 Thread Kenneth McDonald
Oops, wrong HTML down there. The actual HTML is: {{ form.as_table }} On Dec 9, 2009, at 9:21 PM, Kenneth McDonald wrote: > >> And the code to create and validate the form is...? That might help >> in figuring ou

Jobs for DJango newbies?

2009-12-09 Thread Kenneth McDonald
Where would one find such beasties? Once I've taught myself Django, I'd like to think I might be able to get some sort of job with it, albeit a very junior one. Thanks, Ken -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: newbie question on 'clean_' functions

2009-12-09 Thread Kenneth McDonald
> And the code to create and validate the form is...? That might help > in figuring out what is wrong. > Sure. It's just: def buysell(request): form = BuySellForm() return render_to_response('buysellform.html', {'form': form}) in file 'buysell.py', and is referenced as http://..

Re: newbie question on 'clean_' functions

2009-12-09 Thread Kenneth McDonald
P.S. Yes, the form was correctly submitted. Thanks, Ken On Dec 9, 2009, at 8:16 PM, Kenneth McDonald wrote: > In the following bit of code: > > > > from django import forms > > class BuySellForm(forms.Form): > symbol = forms.CharField() > shares = fo

newbie question on 'clean_' functions

2009-12-09 Thread Kenneth McDonald
In the following bit of code: from django import forms class BuySellForm(forms.Form): symbol = forms.CharField() shares = forms.CharField() price = forms.CharField() print "DATA" def clean_shares(self): print "DATA KEYS", self.data.keys() the BuySellForm con

How best to delete one of multiple records?

2008-06-22 Thread Kenneth McDonald
I have a list of records, and I'd like the user to be able to delete any given record by pressing a button. My current strategy is to have each record in its own form (so that pressing the submit button for that form would delete the record), and have each form contain a hidden field ident

How to execute method in template?

2008-06-21 Thread Kenneth McDonald
Is there a way to execute a method in a template? I'm just learning the Google App Engine, and would like to be able to insert the key value for an entity along with the data for that entity: So, I want something similar to this: {% for greeting in greetings %} {% if greeting.aut

Re: downloadable django site example anywhere?

2008-05-20 Thread Kenneth McDonald
b itself by: > svn co http://code.djangoproject.com/browser/djangoproject.com > > or get http://jeffcroft.com/blog/2006/jun/06/lost-theories-with-source-code/ > > sure there are many others > good luck > > On May 20, 2:39 pm, Kenneth McDonald > <[EMAIL PROTECTED]> wrot

downloadable django site example anywhere?

2008-05-20 Thread Kenneth McDonald
Is there a downloadable example of a Django site that illustrates the various things one needs to do to get the various aspects of a Django site working? In my case, I still don't have ModelForms working, and a complete, simple example would be better than all the descriptive prose that co

Anyone familiar with ''ModelBase' object is not iterable' error?

2008-05-19 Thread Kenneth McDonald
I'm trying to get a form working so that a user can enter data without using the admin interface. I've gotten this far, but this error has me stumped, as I'm not sure where in my chain of things (form from model, template, etc.) it's likely cause is. Hoping someone else has had something s

How does one use model data in forms?

2008-05-17 Thread Kenneth McDonald
For example, I want foreign keys to show up as popup lists. Also, I'd like to get the date widget in a user form the same as it is in the Admin interface. These are broad questions, so I guess the real question is, "Where do I read how to do this". Haven't found it in the book yet. Thanks

Any examples of django order-processing systems out there?

2008-05-17 Thread Kenneth McDonald
Just wondering, it's always nice to see how others have done things. Thanks, Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.c

How best to place multiple orders from same screen?

2008-05-17 Thread Kenneth McDonald
I'm designing an order system wherein each order will be an object. However, most customers will typically want to order more than one thing at once. To make things easier for the user, I'd like to allow them to enter, say, up to 5 orders on the same screen. Each order will then be stored

How does one express that a primary key is made of a combination of _two_ fields?

2008-05-16 Thread Kenneth McDonald
Just as the subject says, nothing more to ask :-) Thanks, Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe