QuerySet.contains() for .values() and .values_list()

2021-01-13 Thread Johan Schiff
preference here. Johan -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.co

Re: Implement QuerySet.__contains__?

2020-06-05 Thread Johan Schiff
gt; if obj in list(queryset): > > Which I understand is already working? Why does the first line (without > list()) should work anyway? > > And if users want performance, why not write: > > if queryset.filter(pk=obj.pk).exists(): > אורי > u...@speedy.net >

Re: Implement QuerySet.__contains__?

2020-06-03 Thread Johan Schiff
ase obj_last exists(): 6.0190791100030765 Le mer. 3 juin 2020 à 10:52, Johan Schiff a écrit : > Thanks for great info. > > First, I'm leaning towards Aymeric's proposition here. I do recognize that > there is a lot to consider. > > This seems to be important: > >1. Developers

Re: Implement QuerySet.__contains__?

2020-06-03 Thread Johan Schiff
unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/3928039038bac9b52279294f7efcac318dc80388.camel%40gammascience.co.uk > <https://groups.google.com/d/msgid/django-developers/3928039038bac9b52279294f7efcac318dc80388.came

Implement QuerySet.__contains__?

2020-06-02 Thread Johan Schiff
t;obj in queryset" syntax, believing it does "the right thing". //Johan -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails fro

Customizable urlize

2020-01-07 Thread Johan Schiff
=False, email_formatter: callable = None, url_formatter: callable = None, ): ... Johan Schiff Betahaus (SE) -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from

RE: Tagging 1.4 django release in Subversion

2012-03-26 Thread Johan
svn checkout allows me to track my changes better, and upgrade them between releases. Johan From: django-developers@googlegroups.com [mailto:django-developers@googlegroups.com] On Behalf Of Florian Apolloner Sent: Monday, March 26, 2012 5:48 PM To: django-developers@googlegroups.com Subject: Re:

Re: How to create a new command in django-admin.py

2012-02-23 Thread Johan
Well I can think of a whole lot of ways in which this can be done 'better' :) ... But, I don't have the time to change django atm so I will have to live with it :) ... Thanks for the help ... On Feb 23, 4:14 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Feb 23, 2012 at 1:22

Re: How to create a new command in django-admin.py

2012-02-23 Thread Johan
Nope there is not. I just thought it could be done as easily as for manage.py. Thanks On Feb 23, 4:13 pm, Jani Tiainen <rede...@gmail.com> wrote: > 23.2.2012 15:22, Johan kirjoitti: > > > Hi > > > I know how to create a new command in manage.py, this link explain

How to create a new command in django-admin.py

2012-02-23 Thread Johan
the application to the INSTALLED_APPS tuple? Regards Johan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-

Re: Trouble joining IRC

2010-02-12 Thread Johan
Got it! Thank you so much! Johan On Feb 12, 11:17 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Fri, Feb 12, 2010 at 11:14 PM, Johan <johanharj...@gmail.com> wrote: > > Hello, > > > I am trying to log into the IRC channel at #django-dev but I kept on > >

Trouble joining IRC

2010-02-12 Thread Johan
to do before I can join the channel? I'm not sure what it means by "identified with services" also, I'm quite new to IRC, so perhaps it's something completely obvious that I overlooked? thank you for the trouble, Johan -- You received this message because you are subscribed to the Goo

Re: Bug in django\template\__init__.py ??

2009-10-29 Thread Johan
Thanks. This link is exactly what i need. On Oct 29, 5:07 pm, Waylan Limberg <way...@gmail.com> wrote: > On Thu, Oct 29, 2009 at 10:37 AM, Johan <djjord...@gmail.com> wrote: > > >  I am > > wanting to use the template engine outside the context of a django &

Re: Bug in django\template\__init__.py ??

2009-10-29 Thread Johan
Thanks for the quick reply. I discovered exactly what you said about 2 seconds after pressing the submit on my query. On Oct 29, 4:50 pm, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Thu, Oct 29, 2009 at 10:37 PM, Johan <djjord...@gmail.com> wrote: > > >

Bug in django\template\__init__.py ??

2009-10-29 Thread Johan
Hi. In django\template\__init__.py on line 54 there is a line of code : from django.conf import settings. Firstly there is no settings.py file in django\conf, ther is however a file called global_settings.py. In my context the is issue is fxed by changing the line to from django.conf import

Re: Django, initial data and custom SQL

2009-02-12 Thread Johan Bergström
and fully respect that. This patch is the result. Just for reference, this is what I think should be done for an optimal workflow: * create table * create m2m * run custom data * run fixtures * run indexes * emit "database done" signal This way, you can still insert your fa

Re: Django, initial data and custom SQL

2009-02-11 Thread Johan Bergström
On Feb 10, 5:07 pm, Johan Bergström <b...@bergstroem.nu> wrote: > Hey, > > On Feb 10, 4:51 pm, "ludvig.ericson" <ludvig.eric...@gmail.com> wrote: > > > > > > > On Feb 10, 1:13 pm, Johan Bergström <b...@bergstroem.nu> wrote: > >

Re: Django, initial data and custom SQL

2009-02-10 Thread Johan Bergström
Hey, On Feb 10, 4:51 pm, "ludvig.ericson" <ludvig.eric...@gmail.com> wrote: > On Feb 10, 1:13 pm, Johan Bergström <b...@bergstroem.nu> wrote: > > > Since Django executes my custom SQL before creating indexes, it's > > impossible to achieve somethi

Django, initial data and custom SQL

2009-02-10 Thread Johan Bergström
do, what I would like to know is if there's a reason to why custom SQL is executed before index creation. Kind regards, Johan bergström --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&

Django, Simplejson and speedups

2008-11-28 Thread Johan Bergström
Simplejson has been getting some version increments lately and Django hasn't been including them (there are tickets), which is - in my opinion - okay. Constantly upgrading the included simplejson library is an never ending rabbit chase where required effort doesn't motivate possible benefits

Re: Django & memcache hashing

2008-11-21 Thread Johan Bergström
his thread (as well as beeing linked to the crash-prone libmemcache library), I don't think that cmemcache belongs as an alternative in Django. Either offer an alternative (pylibmc comes to mind, albeit at very young age) for performance or remove it. > > Regards, > Malcolm Thanks, Johan --~

Re: Pluggable filestorage [was Heads-up: doing a bit of triage work]

2007-09-18 Thread Johan Bergström
On Sep 18, 1:21 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 9/18/07, Johan Bergström <[EMAIL PROTECTED]> wrote: > > > What is wrong with using FTP for intranet file shuffling? I don't > > think frameworks should decide or advocate how you design yo

Re: Pluggable filestorage [was Heads-up: doing a bit of triage work]

2007-09-18 Thread Johan Bergström
towards SFTP is in my opinion the way forward. > The is the same reasoning behind not shipping with a CGI handler -- > Django shouldn't make it easy to do stupid things. I don't think this is the same thing. Why use encryption when you trust the sender? > Now, a SSH/SFTP backend... th

Re: Decouple simplejson from Django?

2007-07-13 Thread Johan Bergström
be solved on a similar fashion as above. thanks, Johan Bergström --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@google

Re: Decouple simplejson from Django?

2007-07-12 Thread Johan Bergström
> Can you use the ORM without a database adapter? Ok, that might sound a bit stupid since you already kind of answered that in the post above. What i meant was that Django has lot of different imports, and without some of them (say a database adapter) Django is crippled. I personally don't see

Re: Decouple simplejson from Django?

2007-07-12 Thread Johan Bergström
On Jul 12, 8:55 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > The other modules you mention are optional to a certain extent (don't > technically need flup to do Django-as-WSGI, can use Django without a > database or with your choice of DB adapter), but simplejson is > absolutely required

Decouple simplejson from Django?

2007-07-12 Thread Johan Bergström
) cheers, Johan Bergström --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group,

Re: make db form settings

2007-07-05 Thread Johan Bergström
I recently made a patch that can be used to get a similar result. You can find the patch here: http://code.djangoproject.com/ticket/4528 regards, Johan Bergström On Jul 4, 7:54 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > I have the begging of something that may eventually get