Kite's AI Autocomplete for Python, now on Linux

2019-05-02 Thread brendan
After years of development and a whole lot of anticipation, Kite is now available on Linux! You can download it for free at kite.com/linux. Kite helps Python developers be more productive with its Line-of-Code Completions, and integrates as a plugin into PyCharm, IntelliJ, VS Code, Atom, Subl

Re: a design about cache(using redis) , and some problem about it

2016-04-11 Thread Brendan Quinn
che the top 100 list. But if neither condition is true (which should be most of the time), you can leave the cache untouched. There are probably other smart things you can do so that you don't have to re-execute a MySQL query each time you rebuild the top 100 list, but this optimisation sho

Re: Make a model form field not required

2014-05-16 Thread Brendan Edwards
Works like a charm, but I don't completely understand why that is necessary. When I defined the text input as hidden and disabled, it overwrote the initial settings of that field? what exactly does this line do? def __init__(self, *args, **kwargs): forms.ModelForm.__init__(self

Make a model form field not required

2014-05-15 Thread Brendan Edwards
} with some jquery to hide/show player 2,3,4 depending on the select box value for number of players. Before I started adding jquery code to the template, this worked fine. Any ideas what could have happened?! Thanks in advance! Brendan -- You received this message because you are subscribed t

Re: Multiple Model Form Generation

2014-05-15 Thread Brendan Edwards
> > Why not just do this? (Sorry for the crappy indentation.. tab doesn't work > on here for some reason) > > models.py: > > >> class SignUpForm(forms.ModelForm): >> class Meta: >> model = Customer >> > > class VmForm(forms.ModelForm): > class Meta: >

Re: Multiple Model Form Generation

2014-05-15 Thread Brendan Edwards
Why not just do this? (Not sure if this is the most efficient way..) models.py: > class SignUpForm(forms.ModelForm): > class Meta: > model = Customer > class VmForm(forms.ModelForm): class Meta: model = Vms class VmSpecForm(forms.ModelForm):

Re: Django Database Data Type

2014-05-05 Thread Brendan Edwards
ed {{ tee1.hole1_distance }} etc.. which got me the correct value. I had tried this before but left out .values() due to lack of understanding at the time. Thanks! Brendan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Django Database Data Type

2014-05-05 Thread Brendan Edwards
x27;Blue'}" called and why does it display like this (I would like to understand and not just insert a given line of code)? I have read the documentation and I am still confused on this. 2) How can I retrieve blue from {'Tee_Color': u'Blue'}? (example code would

Django Query Data

2014-05-04 Thread Brendan Edwards
etc Questions: 1) What is the data "{'Tee_Color': u'Blue'}" output "{'Tee_Color': u'Blue'}" called and why does it display like this (I would like to understand and not just insert a given line of code)? I have read the documentation

Re: pub_date timezone

2012-10-27 Thread Brendan Carroll
Oh that is a serious case of PEBCAC. Thanks you for your help. Brendan On 27 October 2012 01:33, donarb wrote: > You misspelled 'pub_date' as 'put_date' in your model definition. > > > On Thursday, October 25, 2012 9:30:57 AM UTC-7, BrendanC wrote: >&g

Re: pub_date timezone

2012-10-25 Thread Brendan Carroll
Thank Emrah Appreciate your help. Will try that later as I have an online lecture until 2100hrs. Brendan On 25 October 2012 18:10, Emrah Atalay wrote: > Hi again, > > Remove 'date published' string from pub_date=models.DateTimeField > > from django.db import models &g

pub_date timezone

2012-10-25 Thread Brendan Carroll
Hi all I am new to Django and I'm having an issue with some code. I am trying to get through the first tutorial from the Django site. I have a file called polls/models.py and have created a class that contains the following code class Poll(models.Model): question = models.CharField(max_lengt

Re: DeprecationWarning: A Field class whose get_db_prep_value method hasn't been updated to take `connection` and `prepared` arguments

2011-06-01 Thread Brendan Smith
away. > > Any hints? > > Many thanks for your help! > > regards, Tom > > -- > 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 unsubscr

Re: 200 OK message

2011-05-27 Thread Brendan Smith
bump? On Thu, May 26, 2011 at 11:11 AM, Brendan Smith < bren...@nationalpriorities.org> wrote: > hey all, > > I pushed some changes to my code last night and this morning upon trying to > add an object (based on a model I added last night) this morning I am > getting t

200 OK message

2011-05-26 Thread Brendan Smith
idea what this is all about? thanks,Brendan -- Brendan Smith, IT Specialist National Priorities Project http://www.nationalpriorities.org http://www.costofwar.com http://www.facebook.com/nationalpriorities 413 584 9556 -- You received this message because you are subscribed to the Google Group

Re: how safe is the template engine

2010-10-18 Thread Brendan Smith
; "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users

Re: how template tag extends works

2010-05-21 Thread Brendan Smith
i don't know for sure the exact answer of whether or not your include is cached, someone more intimate with core would know better than i... but, i would recommend making your own template tag for doing this ( http://docs.djangoproject.com/en/dev/howto/custom-template-tags/) On Fri, May 21, 2010

Re: Working for a startup.

2010-04-22 Thread Brendan Smith
t; > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > django-user

django on tomcat

2009-04-23 Thread Brendan Miller
What servers does django support? Is there any way to get it with cpython to run on top of tomcat? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: tutorial bug

2008-10-18 Thread Brendan Miller
> The tutorial, though, puts it on the Poll model.  Where is yours? Ah, thanks. It seems that I put it in the PollAdmin for some reason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

tutorial bug

2008-10-18 Thread Brendan Miller
vior changed since the tutorial was written? Thanks, Brendan --~--~-~--~~~---~--~~ 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 unsubscribe fr

python templating languages and django

2008-09-06 Thread Brendan
Hi, I'm looking at various python web frameworks, primarily looking for something to handle the presentation layer right now, and I heard some things about django. I looked at django's templating langauge and some other python templating languages. I'm most familiar with XML based templating lang

xml web templating with python

2008-09-04 Thread Brendan
gs, but is there an equivalent? If not, is there a python web presentation framework that has such capabilities? Thanks, Brendan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Validating custom primary key values in raw_id_admin fields

2007-07-29 Thread Brendan Arnold
ion. the databases are geared up for accepting characters rather than integers where appropriate. the error message now reads 'Enter only digits separated by commas.' brendan On Oct 26 2006, 9:49 pm, "atlithorn" <[EMAIL PROTECTED]> wrote: > This seems to be on the fritz

Re: broken images in development server?

2005-08-21 Thread Brendan O'Connor
there's a ticket on this (forgot the number) -- the code needs to be changed on windows to open in binary mode, or something like that... xtian wrote: > When I've been playing with Django I've often noticed broken images in > the admin interface - chasing the urls shows that they seem to resolve