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
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
> 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://..
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo