Re: date time errors: please explain?

2006-03-05 Thread gizo
With all due respect, this doesn't attend to my question. Why can I use MySQLdb from python to run a date_add query, but not run the same query from Django? I don't see the point in using a workaround for a query that I should be able to call through MySQL

Re: date time errors: please explain?

2006-03-01 Thread gizo
Correct me if I am wrong, but timedelta doesn't allow for months, does it? --~--~-~--~~~---~--~~ 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

date time errors: please explain?

2006-02-28 Thread gizo
Hoody. Can anyone tell me why I can use this code with MySQLdb in python, but not in Django? cursor=db.cursor() cursor.execute("select date_add('2006-2-24',INTERVAL 1 Month) as newDate") django error is: ValueError, unpack list of wrong size I am completely stumped. Alternately, is there

how to implement RequiredIfOtherFieldEquals validation?

2006-02-21 Thread gizo
gerField(null=True, blank=True, validator_list=[RequiredIfOtherFieldEquals('periodType','Month')]) and I've tried prefixing with "validators." Am I trying to do something which can't be done? And if not, how do I access and use all those validators? Lost in confusion, gizo. --~--~-~-

manipulator validation across fields

2006-02-19 Thread gizo
I have a form with 3 separate fields. I need the user to input data into one of the fields. No more than one, and no less than one. Is there an easy way to tell my manipulator to check this? Something like : one_of_these_is_required_list=['field1','field2','field3'] does that kind of

can i extend manipulators?

2006-02-15 Thread gizo
Hiya. I have a largeish form, and I want to add customised choices and validation for one field. I can only seem to find doc references to creating a whole new manipulator, and I'd rather not have to re-define every field in the form. Is there a way I can extend the standard manipulators to do

Re: more model basics - mny to many's

2006-02-14 Thread gizo
ah, looks clever, i like that. I'll check it when i get into work. thanks...

Re: more model basics - mny to many's

2006-02-14 Thread gizo
wont that just give me: Each Song can have many Instruemtns Each Song can have many Musicians? what I want is: Each Song can have Many Player/Instrument combinations (where each musician could play any instrument, in theory)

more model basics - mny to many's

2006-02-13 Thread gizo
Hiya. I am not a web developer, okay, just trying to do a band website (so take it easy on me, please ;) I am having trouble with my models. I have the following: class musician(meta.Model): ... class instrument(meta.Model): ... class song(meta.Model): .. class

Re: Making Django Development server available to local network.

2006-02-09 Thread gizo
Jan Rademaker wrote: > Panos Laganakos wrote: > > I am using a local server for all web development stuff. So I set up > > django on it and started the tutorial. > You could try 'manage runserver 0:8000' so it won't bind to a specific > interface/ip address. Panos, I was about to ask the same