Re: Chapter 7: Form Processing

2008-01-16 Thread FrankW
remove the quotes around mysite.books.views.search in: (r'^search/$', 'mysite.books.views.search') On Jan 16, 2:58 pm, Mikey3D <[EMAIL PROTECTED]> wrote: > I have an error: > > Exception Type: ImproperlyConfigured at /search/ > Exception Value: Error while importing URLconf 'mysite.urls':

Re: Validation of dynamically generated forms

2007-10-10 Thread FrankW
f = CartForm({'a':'1', 'b':'2'}) > >>> f.is_bound > True > >>> f.is_valid() > False > >>> k = CartForm({'a':1, 'b':2}) > >>> k.is_bound > True > >>> k.is_valid() > > False > > I supposed the first one validation to be

Re: Validation of dynamically generated forms

2007-10-06 Thread FrankW
In your example, self.fields[str(key)]=forms.CharField(initial=c[key]) isn't doing what you expect. You are setting the initial attribute of a field, not creating a BoundField. See django/newforms/forms.py, and look at the comments for BaseForm and Form and the code for BoundField. On Oct

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-19 Thread FrankW
wrote: > On Jul 19, 12:24 pm, FrankW <[EMAIL PROTECTED]> wrote: > > > A couple of things to check - what are the permissions on > > dispatch.fcgi? > > It needs to be executable, e.g. -rwxr-xr-x > > Permissions are correct. > > > Also, make sure it

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-19 Thread FrankW
A couple of things to check - what are the permissions on dispatch.fcgi? It needs to be executable, e.g. -rwxr-xr-x Also, make sure it does not have DOS mode CR-LF And, do you have debug set in your settings.py? On Jul 19, 2:04 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > As I said, I tried to

Re: saving queries

2007-05-21 Thread FrankW
Oops - I didn't read far enough in the DB API! Q objects do exactly this! --~--~-~--~~~---~--~~ 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

Re: Django Diagram

2007-05-04 Thread FrankW
Thanks for the comments, Tim. The way that I use Forms is by form_for_model, so I think its important to have Forms near Models. Templates are very different - not python modules, not imported, so I made them a different color. I made Settings and URLs orange, since they are mostly declarative

Django Diagram

2007-05-03 Thread FrankW
I'm teaching my son Django and came up with a diagram for him - you know what they say - a picture is worth a thousand words. The diagram is at http://zdecisions.com/zdmedia/img/django.jpg Any comments or suggestions for making it better? --~--~-~--~~~---~--~~