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
--~--~-~--~~---
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
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
okay. Sorry to waste your time.
Firstly: I had a bad day yesterday, my head was very hurt.
Secondly: choices_list=(('by Month','Month'),('by Day','Day')) - no
wonder it didn't work!!
I apologise to anyone who has bothered to read this, and even more to
anyone who might have stopped to think abo
ahhh!
The 'periodType' field I am testing against is currently set up as a
SelectField, which is being generated by the manipulator
(choices=choice_list). And that somehow doesn't work.
I changed it to a TextField, and entered 'Month', and it works
wonderfully.
Yay, mostly
--
.IntegerField(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 co
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 functionalit
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 so?
ah, looks clever, i like that.
I'll check it when i get into work.
thanks...
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)
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 songInstrument(m
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 qu
12 matches
Mail list logo