Re: What is the difference bulk_update() and update() in django queryset.

2021-08-18 Thread M. GW
bulk_update() is a method that updates the provided list of objects into the database with one query. and update() is just for one object ambiti...@gmail.com schrieb am Donnerstag, 12. August 2021 um 00:03:25 UTC+2: > What is the difference bulk_update() and update() in django query

What is the difference bulk_update() and update() in django queryset.

2021-08-11 Thread Am bition
What is the difference bulk_update() and update() in django queryset. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

Re: What is the difference between virtual environment and normal code in pycharm

2020-03-19 Thread Ravi Prakash
de the version package N, you may face issues with the others > projects as this will affect directly. > > Regards > > Sent from my iPhone > > On 19 Mar 2020, at 7:13, Ravi Prakash > wrote: > >  > Hi All > > What is the difference between the virtua

What is the difference between virtual environment and normal code in pycharm

2020-03-19 Thread cosmos multi
Hi ravi. In pycharm the virtual environment is created according to the project you choose, making this a little more automatic, making the installation or updating of packages more friendly, while a normal one is you who chooses what it should have -- You received this message because you ar

Re: What is the difference between virtual environment and normal code in pycharm

2020-03-19 Thread Phako Perez
Mar 2020, at 7:13, Ravi Prakash wrote: > >  > Hi All > > What is the difference between the virtual environment and normal code in > pycharm? > > Can you explain, please > > > Virtual Clone > VirtualTech Outsourcing Services Pvt Ltd > 59/B, Plot N

What is the difference between virtual environment and normal code in pycharm

2020-03-19 Thread Ravi Prakash
Hi All What is the difference between the virtual environment and normal code in pycharm? Can you explain, please -- Virtual Clone VirtualTech Outsourcing Services Pvt Ltd  59/B, Plot No. 4, 5 and 6, Nehru Nagar (West) Bhilai, Chhattisgarh - 490 020, India www.virtualclone.in <h

What is the difference between declaring a middleware in "MIDDLEWARE" setting vs inside ProtocolTypeRouter()?

2019-02-19 Thread Aung Khant
Hello, I am a new user to Django and Channels. As I mentioned, I believe you can infer from the title what I am getting at. Is it because one has to do with Channel and thus different way of using middleware? -- You received this message because you are subscribed to the Google Groups "Django

Re: what is the difference?

2018-09-07 Thread Andréas Kühne
Hi, First of all - the examples you are giving can't be correct. z = Model.objects.get(name=x) will only return 1 object - and will raise an exception if you get more than one result. So in this case z should be an instance of the model Model. z = and cannot be [, ] When querying the second q

what is the difference?

2018-09-07 Thread MikeKJ
[, ] and [[, ]] 1st came from z = Model.objects.get(name=x) This returns the object name 2nd came from z = Model.objects.filter(name=x) The 2nd method when you look for the id for x in z: print(x.id) fails with 'QuerySet' object has no attribute 'id' also tried zz = Model.objects.

Re: What is the difference between running manage.py and ./manage.py?

2014-08-04 Thread Malik Rumi
Thanks for the clarification! On Sunday, August 3, 2014 9:16:01 PM UTC-5, Lachlan Musicman wrote: > > Not really, it's a Nix thing (ie, OSX and BSD as well as linux). > > Basically, if you set the file to be executable (chmod +x) then > ./filename is a way of executing using the default file ass

Re: What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Javier Guerra Giraldez
On Sun, Aug 3, 2014 at 9:03 PM, Malik Rumi wrote: > Is this a Linux thing? on it's about the PATH variable. it's usually considered less safe to include '.' (the current directory) in PATH. Of course, that doesn't stop MS to put it right in the head of the default PATH value. -- Javier --

Re: What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Lachlan Musicman
Not really, it's a Nix thing (ie, OSX and BSD as well as linux). Basically, if you set the file to be executable (chmod +x) then ./filename is a way of executing using the default file association (.py is python usually). The ./ bit indicates "look in the folder we are in" - if the file is not in

What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Malik Rumi
Is this a Linux thing? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-use

Re: What is the difference in the 1.5.x branches for instance, vs 1.5

2013-03-25 Thread Huy T
Thank you Karen! Thinks makes sense for me, such that if wanting to stay on a long term stable version of 1.5, would pull 1.5.x The question was set forward after reading about that memory leak caused issue in a separate mail. On Mon, Mar 25, 2013 at 8:10 AM, Karen Tracey wrote: > On Sun, Mar

Re: What is the difference in the 1.5.x branches for instance, vs 1.5

2013-03-25 Thread Karen Tracey
On Sun, Mar 24, 2013 at 11:39 PM, Huy T wrote: > Is it better practice to pull from 1.5.x vs the master? I am unclear as to > the difference unless it eventually is rolled into the master. > > 1.5.x branch has bug fixes made after the release of 1.5. It will never be rolled into master (which has

What is the difference in the 1.5.x branches for instance, vs 1.5

2013-03-25 Thread Huy T
Is it better practice to pull from 1.5.x vs the master? I am unclear as to the difference unless it eventually is rolled into the master. Also, when using pip to install, I am launching the command: pip install -v git+https://github.com/django/django.git@1.5.x But have also seen #egg=django , I

Re: What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread lamen
Hi Mr. Terra, Thanks so much for these links and your help. Definitely appreciated. I know I'll just end up using the ModelSerializer class but I like to understand what is going on underneath to a reasonable level and it bugs me when I can't figure something that I know is basic out. On T

Re: What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread Andre Terra
This is a much better explanation on the use of *args and **keywordargs (**kwargs) http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/ On Thu, Mar 14, 2013 at 6:22 PM, Andre Terra wrote: > About the asterisks, please checkout this link: > > http://stackoverflow.com/ques

Re: What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread Andre Terra
About the asterisks, please checkout this link: http://stackoverflow.com/questions/4306574/python-method-function-arguments-starting-with-asterisk-and-dual-asterisk the difference between dict['key'] and dict.get('key', 'something') is that the second doesn't raise a KeyError exception when 'key'

What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread lamen
Hello, Not sure what the difference is in the usage of attrs I could not find the documentation for this although I'm sure it's going to be obvious after the fact. Also, could someone tell me what the double asterisks mean in the line return Comment(**attrs) ? Is this some type of variable len

What is the difference between MEDIA_ROOT and STATICFILES_ROOT in Django1.3?

2010-10-20 Thread P.R.
.. and why staticfiles doesn't work? :-) # django.contrib.staticfiles ... if settings.DEBUG: raise ImproperlyConfigured("The view to serve static files can only " "be used if the DEBUG setting is True") It should be "if not settings.DEBUG" I think.

Re: What is the Difference between get() and filter() functions in Django Framework

2009-02-08 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 12:37 AM, gganesh wrote: > > hi , > help to find the difference between get() and filter() function in > django ,both seems to retrieve records from data base . > Thanks > > > > filter() returns another QuerySet, that is it returns multiple objects, get() returns a single

What is the Difference between get() and filter() functions in Django Framework

2009-02-08 Thread gganesh
hi , help to find the difference between get() and filter() function in django ,both seems to retrieve records from data base . Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to