W dniu 06.03.2009 20:06, Jeff Gentry pisze:
> On Fri, 6 Mar 2009, Malcolm Tredinnick wrote:
>
>>> Bob.objects.filter(foo=myFoo).filter(blah__in=myBlahs)
>>>
>> Seems like the best (and obvious) way to me.
>>
>
> Gotcha.
>
>
>> Yes it does. As written, your models have no
W dniu 06.03.2009 01:24, Malcolm Tredinnick pisze:
> On Thu, 2009-03-05 at 18:48 -0500, Jeff Gentry wrote:
>
>> Suppose I have three models (in pseudocode):
>>
>> class Foo:
>> asdf = models.CharField()
>>
>> class Blah:
>> qwerty = models.CharField()
>>
>> class Bob:
>> foo =
W dniu 25.02.2009 11:53, bruno desthuilliers pisze:
> On 25 fév, 11:00, Sean wrote:
>
>> Hi,
>>
>> I am using django+MySql.
>> My job involves to write a huge number of products codes into the
>> MySql, code such as: ABCDEFGHI10, it is typically between 1 million up
>>
W dniu 26.01.2009 13:08, Stefan Tunsch pisze:
> Hi!
>
> I have a qset object like this:
>
> qset = (
> Q(dst__contains=company.phone) |
> Q(dst__contains=company.cellphone) |
> Q(dst__contains=company.fax) |
>
W dniu 26.01.2009 13:08, Stefan Tunsch pisze:
> Hi!
>
> I have a qset object like this:
>
> qset = (
> Q(dst__contains=company.phone) |
> Q(dst__contains=company.cellphone) |
> Q(dst__contains=company.fax) |
>
Hi, i have one simple question, why this middleware leave transaction in
managed mode? i think this create a little hole to execute queries we
dont want to execute.
Thanks for answer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hello, i want to release some code, but i have one problem:
how impel peoples to send me back patches?
Any suggestions are welcome :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Try put:
# -*- coding: utf-8 -*-
in first line in .py file
Maybe you need change utf-8 to your encoding
Dominic Ashton pisze:
>
> Guys,
>
>
> Just had the strangest thing happened.
>
> Finished working on my project last night and everything was working
> fine. I backed up the directory using
i was using mysql for about 5y but now postgresql is better for me
because of exclusive locks and full transactions support
xhenxhe pisze:
> Thanks for the info. So I guess I can just stick with MySQL since I
> know it well... unless at some future date I find a compelling reason
> to swtich to
size = [200.0, 400.0]
return size[0]/size[1]
Jarred Bishop pisze:
> Hi, this is driving me crazy. I'm sure there is a VERY simple solution
> but can't seem to find it. thanks for you help.
>
> if I have
>
> size = 200, 400
> return size[0]/size[1]
>
> it returns '0'. which isnt much
second is true, you need to use OnetOneField(Model,primary=True) to make
field primary_key
Juanjo Conti pisze:
> Here
> http://www.djangoproject.com/documentation/db-api/#one-to-one-relationships
> says:
>
> '''
> The semantics of one-to-one relationships will be changing soon, so we
> don't
ups i think
return Teams.objects.get(self.team1_id).name
will be better :)
Sebastian Bauer pisze:
> try this:
>
> return Teams.objects.get(self.team1).name
>
>
> nikosk pisze:
>
>> Hi all
>>
>> Does anyone know how to do something like this :
>&
try this:
return Teams.objects.get(self.team1).name
nikosk pisze:
> Hi all
>
> Does anyone know how to do something like this :
>
> class Game(models.Model):
> team1 = models.ForeignKey(Teams, related_name=u'team_home')
> team2 = models.ForeignKey(Teams , related_name=u'team_away')
>
try:
def __str__(self):
return self.question
[EMAIL PROTECTED] pisze:
> http://www.djangoproject.com/documentation/tutorial01/
>
> added these:
> class Poll(models.Model):
> # ...
> def __unicode__(self):
> return self.question
>
> class Choice(models.Model):
> # ...
>
did you have this:
import settings
in files where you using settings variable?
Mayank Dhingra pisze:
> any thoughts ?
>
> On May 27, 12:58 pm, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
>
>> I am experiencing a strange problem while using
>> DualSessionMiddleware
>>
>>
15 matches
Mail list logo